mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-01 01:00:34 +00:00
apparmor: if Perl is disabled remove perl-using scripts
aa-notify uses the Perl bindings, so isn't usable when perl is disabled. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
230ee1fc35
commit
4918d0b025
@@ -86,6 +86,11 @@ do_install () {
|
|||||||
oe_runmake -C ${B}/parser DESTDIR="${D}" install
|
oe_runmake -C ${B}/parser DESTDIR="${D}" install
|
||||||
oe_runmake -C ${B}/profiles DESTDIR="${D}" install
|
oe_runmake -C ${B}/profiles DESTDIR="${D}" install
|
||||||
|
|
||||||
|
# If perl is disabled this script won't be any good
|
||||||
|
if ! ${@bb.utils.contains('PACKAGECONFIG','perl','true','false', d)}; then
|
||||||
|
rm -f ${D}${sbindir}/aa-notify
|
||||||
|
fi
|
||||||
|
|
||||||
if test -z "${HTTPD}" ; then
|
if test -z "${HTTPD}" ; then
|
||||||
oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install
|
oe_runmake -C ${B}/changehat/mod_apparmor DESTDIR="${D}" install
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user