Merge pull request #15154 from stefanberger/apparmor-engine
contrib: Extend engine apparmor profile for tools needed by devicemapper Upstream-commit: f8f4deb0b2c52d97322a9c66d05ee8d4d8a4d665 Component: engine
This commit is contained in:
@@ -41,6 +41,9 @@ profile /usr/bin/docker (attach_disconnected, complain) {
|
||||
/sbin/iptables rCx,
|
||||
/sbin/modprobe rCx,
|
||||
/sbin/auplink rCx,
|
||||
/sbin/mke2fs rCx,
|
||||
/sbin/tune2fs rCx,
|
||||
/sbin/blkid rCx,
|
||||
/bin/kmod rCx,
|
||||
/usr/bin/xz rCx,
|
||||
/bin/ps rCx,
|
||||
@@ -148,4 +151,60 @@ profile /usr/bin/docker (attach_disconnected, complain) {
|
||||
file,
|
||||
capability,
|
||||
}
|
||||
profile /sbin/mke2fs (complain) {
|
||||
/sbin/mke2fs rm,
|
||||
|
||||
/lib/** r,
|
||||
|
||||
/apparmor/.null w,
|
||||
|
||||
/etc/ld.so.cache r,
|
||||
/etc/mke2fs.conf r,
|
||||
/etc/mtab r,
|
||||
|
||||
/dev/dm-* rw,
|
||||
/dev/urandom r,
|
||||
/dev/null rw,
|
||||
|
||||
/proc/swaps r,
|
||||
/proc/[0-9]*/mounts r,
|
||||
}
|
||||
profile /sbin/tune2fs (complain) {
|
||||
/sbin/tune2fs rm,
|
||||
|
||||
/lib/** r,
|
||||
|
||||
/apparmor/.null w,
|
||||
|
||||
/etc/blkid.conf r,
|
||||
/etc/mtab r,
|
||||
/etc/ld.so.cache r,
|
||||
|
||||
/dev/null rw,
|
||||
/dev/.blkid.tab r,
|
||||
/dev/dm-* rw,
|
||||
|
||||
/proc/swaps r,
|
||||
/proc/[0-9]*/mounts r,
|
||||
}
|
||||
profile /sbin/blkid (complain) {
|
||||
/sbin/blkid rm,
|
||||
|
||||
/lib/** r,
|
||||
/apparmor/.null w,
|
||||
|
||||
/etc/ld.so.cache r,
|
||||
/etc/blkid.conf r,
|
||||
|
||||
/dev/null rw,
|
||||
/dev/.blkid.tab rl,
|
||||
/dev/.blkid.tab* rwl,
|
||||
/dev/dm-* r,
|
||||
|
||||
/sys/devices/virtual/block/** r,
|
||||
|
||||
capability mknod,
|
||||
|
||||
mount -> @{DOCKER_GRAPH_PATH}/**,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user