4524557d11
- Add apparmor-securityfs-systemd.patch: do not mount securityfs when running under systemd, just access the directory, systemd will automount it (bnc#704460). OBS-URL: https://build.opensuse.org/request/show/77678 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apparmor?expand=0&rev=18
14 lines
514 B
Diff
14 lines
514 B
Diff
Index: apparmor-2.6.0/parser/rc.apparmor.functions
|
|
===================================================================
|
|
--- apparmor-2.6.0.orig/parser/rc.apparmor.functions
|
|
+++ apparmor-2.6.0/parser/rc.apparmor.functions
|
|
@@ -295,7 +295,7 @@ is_apparmor_loaded() {
|
|
}
|
|
|
|
is_securityfs_mounted() {
|
|
- grep -q securityfs /proc/filesystems && grep -q securityfs /proc/mounts
|
|
+ test -d ${SECURITYFS} -a -d /sys/fs/cgroup/systemd || grep -q securityfs /proc/filesystems && grep -q securityfs /proc/mounts
|
|
return $?
|
|
}
|
|
|