From b285cd9b05e5211a2a33f82e84fe84b3fec2c2e5 Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Thu, 7 May 2020 18:59:56 -0700 Subject: [PATCH] package/systemd: add support for apparmor If libapparmor is selected, depend on libapparmor and set -Dapparmor=true Signed-off-by: Adam Duskett Signed-off-by: Thomas Petazzoni --- package/systemd/systemd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 9f5429fd19..50398e747e 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -49,6 +49,13 @@ else SYSTEMD_CONF_OPTS += -Dacl=false endif +ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y) +SYSTEMD_DEPENDENCIES += libapparmor +SYSTEMD_CONF_OPTS += -Dapparmor=true +else +SYSTEMD_CONF_OPTS += -Dapparmor=false +endif + ifeq ($(BR2_PACKAGE_AUDIT),y) SYSTEMD_DEPENDENCIES += audit SYSTEMD_CONF_OPTS += -Daudit=true -- 2.30.2