Commit 6d7fa0d
fix(builder): allow mnt + user namespaces for buildah layer extraction
RestrictNamespaces=yes denied every namespace syscall, which broke
buildah's layer-extract path with "creating mount namespace before
pivot: operation not permitted" on COPY steps.
Narrow the restriction to allow mnt + user (the two buildah actually
creates during `bud`) while still denying cgroup, net, uts, pid, ipc
— none of which a static build needs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 090b554 commit 6d7fa0d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
245 | 248 | | |
246 | | - | |
| 249 | + | |
247 | 250 | | |
248 | 251 | | |
249 | 252 | | |
| |||
0 commit comments