feat(profile): docker: add git & init subprofile.

This commit is contained in:
Alexandre Pujol 2025-03-28 23:33:12 +01:00
parent 7a352cb7df
commit 2e5c860f0d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC

View file

@ -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 <abstractions/base>
@{bin}/docker-init mr,
include if exists <local/dockerd_init>
}
profile git flags=(attach_disconnected) {
include <abstractions/base>
@{bin}/git mr,
include if exists <local/dockerd_git>
}
include if exists <local/dockerd>
}