Commit f48c090
committed
fix: allow SAA execution from postgres AppArmor confinement
Remove explicit `deny /** x,` from postgres_shell and pgbackrest_shell
sub-profiles — the deny keyword has absolute precedence in AppArmor,
overriding all specific ix allow rules and blocking SAA execution with
exit 126.
Add SAA to the parent sbpostgres profile with Pix -> postgres_shell so
that the archive_command path (shell staying in sbpostgres due to Pix
fallback) can exec SAA and transition it into postgres_shell. Also add
/nix/store/*/bin/sh to the shell transition rules to cover nix-built
postgres popen() behaviour.1 parent e4fa721 commit f48c090
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
74 | 82 | | |
75 | 83 | | |
76 | 84 | | |
| |||
93 | 101 | | |
94 | 102 | | |
95 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
96 | 107 | | |
97 | 108 | | |
98 | 109 | | |
| |||
136 | 147 | | |
137 | 148 | | |
138 | 149 | | |
139 | | - | |
140 | | - | |
141 | 150 | | |
142 | 151 | | |
143 | 152 | | |
| |||
196 | 205 | | |
197 | 206 | | |
198 | 207 | | |
199 | | - | |
200 | | - | |
201 | 208 | | |
202 | 209 | | |
0 commit comments