Skip to content

Commit 745a0ba

Browse files
authored
Merge pull request #8 from moby/apparmor_abi3
apparmor: explicitly set abi/3.0
2 parents 198e62e + 0447c3e commit 745a0ba

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apparmor/template.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ package apparmor
1111
// profile will likely affect libpod and containerd).
1212

1313
// baseTemplate defines the default apparmor profile for containers.
14+
//
15+
// It explicitly sets the AppArmor ABI to 3.0. In AppArmor ABI higher than 4.0,
16+
// "network" no longer includes "network unix", resulting in access to unix sockets
17+
// being denied. We use ABI 3.0 to account for some LTS distros that do not
18+
// yet support ABI 4.0.
19+
//
20+
// See https://gitlab.com/apparmor/apparmor/-/issues/561
21+
// And https://github.com/containerd/containerd/issues/12726
1422
const baseTemplate = `
23+
abi <abi/3.0>,
24+
1525
{{range $value := .Imports}}
1626
{{$value}}
1727
{{end}}

0 commit comments

Comments
 (0)