diff options
author | Jinliang Li <jinliang.li@linux.alibaba.com> | 2018-06-06 22:06:53 +0800 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-07-03 15:32:38 -0700 |
commit | 7d05867aa10fd48a4679416d207897c2f9c57fc6 (patch) | |
tree | d61ffe3170871623c01d133e50011ef736484f1c | |
parent | 7e262526e66f1acae364d3dbcb324cc73698a208 (diff) | |
download | meta-security-7d05867aa10fd48a4679416d207897c2f9c57fc6.tar.gz |
Fix build issue for apparmor when systemd is used
When systemd is used as system init manager, there is a build issue complains
"can't found apparmor.service". This patch fix it.
Signed-off-by: Jinliang Li <jinliang.li@linux.alibaba.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/AppArmor/apparmor_2.11.0.bb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-security/AppArmor/apparmor_2.11.0.bb b/recipes-security/AppArmor/apparmor_2.11.0.bb index a83c2c3..fc9b614 100644 --- a/recipes-security/AppArmor/apparmor_2.11.0.bb +++ b/recipes-security/AppArmor/apparmor_2.11.0.bb | |||
@@ -104,6 +104,11 @@ do_install () { | |||
104 | 104 | ||
105 | install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor | 105 | install ${WORKDIR}/apparmor ${D}/${INIT_D_DIR}/apparmor |
106 | install ${WORKDIR}/functions ${D}/lib/apparmor | 106 | install ${WORKDIR}/functions ${D}/lib/apparmor |
107 | if [ "${VIRTUAL-RUNTIME_init_manager}" = "systemd" ]; then | ||
108 | install -d ${D}${systemd_system_unitdir} | ||
109 | install ${WORKDIR}/apparmor.service \ | ||
110 | ${D}${systemd_system_unitdir} | ||
111 | fi | ||
107 | } | 112 | } |
108 | 113 | ||
109 | do_compile_ptest () { | 114 | do_compile_ptest () { |