diff options
author | Ross Burton <ross.burton@intel.com> | 2019-01-14 14:42:06 +0000 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-01-17 15:53:25 -0800 |
commit | 230ee1fc353e0e27dbb66855785ff6156e6bba75 (patch) | |
tree | b3e984a04cd204e75697c2852c1611ca39d2a224 | |
parent | a648a295dd61f27ee76196362a61fb84e91d1b6f (diff) | |
download | meta-security-230ee1fc353e0e27dbb66855785ff6156e6bba75.tar.gz |
apparmor: systemd.bbclas is useful even when disabled
The systemd bbclass will remove any systemd files that have been installed if
systemd is disabled, so always install the files and always inherit.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/AppArmor/apparmor_2.12.bb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/recipes-security/AppArmor/apparmor_2.12.bb b/recipes-security/AppArmor/apparmor_2.12.bb index 39c45e5..92602f3 100644 --- a/recipes-security/AppArmor/apparmor_2.12.bb +++ b/recipes-security/AppArmor/apparmor_2.12.bb | |||
@@ -29,8 +29,7 @@ SRC_URI[sha256sum] = "8a2b0cd083faa4d0640f579024be3a629faa7db3b99540798a1a050e2e | |||
29 | 29 | ||
30 | PARALLEL_MAKE = "" | 30 | PARALLEL_MAKE = "" |
31 | 31 | ||
32 | inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages | 32 | inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative ptest cpan manpages systemd |
33 | inherit ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','systemd','', d)} | ||
34 | 33 | ||
35 | PACKAGECONFIG ??= "python perl" | 34 | PACKAGECONFIG ??= "python perl" |
36 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages" | 35 | PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages" |
@@ -101,11 +100,8 @@ do_install () { | |||
101 | 100 | ||
102 | install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor | 101 | install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor |
103 | install ${WORKDIR}/functions ${D}/lib/apparmor | 102 | install ${WORKDIR}/functions ${D}/lib/apparmor |
104 | if [ "${VIRTUAL-RUNTIME_init_manager}" = "systemd" ]; then | 103 | install -d ${D}${systemd_system_unitdir} |
105 | install -d ${D}${systemd_system_unitdir} | 104 | install ${WORKDIR}/apparmor.service ${D}${systemd_system_unitdir} |
106 | install ${WORKDIR}/apparmor.service \ | ||
107 | ${D}${systemd_system_unitdir} | ||
108 | fi | ||
109 | } | 105 | } |
110 | 106 | ||
111 | do_compile_ptest () { | 107 | do_compile_ptest () { |