diff --git a/apparmor.d/groups/virt/dockerd b/apparmor.d/groups/virt/dockerd index b2228ec6f..5b4e8dca2 100644 --- a/apparmor.d/groups/virt/dockerd +++ b/apparmor.d/groups/virt/dockerd @@ -28,6 +28,7 @@ profile dockerd @{exec_path} flags=(attach_disconnected) { capability sys_ptrace, network inet dgram, + network inet raw, network inet stream, network inet6 dgram, network inet6 stream, @@ -64,8 +65,9 @@ profile dockerd @{exec_path} flags=(attach_disconnected) { @{bin}/apparmor_parser rPx, @{bin}/containerd rPx, - @{bin}/docker-init rix, + @{bin}/docker-init rCx -> init, @{bin}/docker-proxy rPx, + @{bin}/git rCx -> git, @{bin}/kmod rPx, @{bin}/ps rPx, @{bin}/runc rUx, @@ -123,6 +125,22 @@ profile dockerd @{exec_path} flags=(attach_disconnected) { /dev/ r, /dev/**/ r, + profile init flags=(attach_disconnected) { + include + + @{bin}/docker-init mr, + + include if exists + } + + profile git flags=(attach_disconnected) { + include + + @{bin}/git mr, + + include if exists + } + include if exists }