We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 198e62e + 0447c3e commit 745a0baCopy full SHA for 745a0ba
apparmor/template.go
@@ -11,7 +11,17 @@ package apparmor
11
// profile will likely affect libpod and containerd).
12
13
// 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
22
const baseTemplate = `
23
+abi <abi/3.0>,
24
+
25
{{range $value := .Imports}}
26
{{$value}}
27
{{end}}
0 commit comments