]> git.proxmox.com Git - mirror_lxc.git/commitdiff
apparmor: update current profiles
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 25 Jul 2018 10:11:23 +0000 (12:11 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 25 Jul 2018 10:13:17 +0000 (12:13 +0200)
remove cgmanager rules and add fstype=cgroup2 variants for
the existing fstype=cgroup rules

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
config/apparmor/abstractions/container-base.in
config/apparmor/profiles/lxc-default-cgns
config/apparmor/profiles/lxc-default-with-nesting

index 16529bbf0df7b6383460c61479b9dd1c04fdfd1a..11ec5c45b9ce343c56f006acd7298174f649f6df 100644 (file)
@@ -85,7 +85,6 @@
   mount options=(rw, nosuid, nodev, noexec, remount) -> /sys/,
   deny /sys/firmware/efi/efivars/** rwklx,
   deny /sys/kernel/security/** rwklx,
-  mount options=(move) /sys/fs/cgroup/cgmanager/ -> /sys/fs/cgroup/cgmanager.lower/,
   mount options=(ro, nosuid, nodev, noexec, remount, strictatime) -> /sys/fs/cgroup/,
 
   # deny reads from debugfs
index ff599ef81c01e0673ca47cf3200c64cabe644c46..f69eb994b9db02ab756af7dbda7dfa99a6c159d0 100644 (file)
@@ -9,4 +9,5 @@ profile lxc-container-default-cgns flags=(attach_disconnected,mediate_deleted) {
   # the newinstance option (but, right now, we don't).
   deny mount fstype=devpts,
   mount fstype=cgroup -> /sys/fs/cgroup/**,
+  mount fstype=cgroup2 -> /sys/fs/cgroup/**,
 }
index 6e5745f97f3c9c6a0e2d66b44db62c090441bcef..cd198beb8aefbfaac99cf56f077ffcd4e0690684 100644 (file)
@@ -11,4 +11,5 @@ profile lxc-container-default-with-nesting flags=(attach_disconnected,mediate_de
   mount fstype=sysfs -> /var/cache/lxc/**,
   mount options=(rw,bind),
   mount fstype=cgroup -> /sys/fs/cgroup/**,
+  mount fstype=cgroup2 -> /sys/fs/cgroup/**,
 }