diff options
| author | Adam Duskett <adamduskett@outlook.com> | 2016-12-17 05:29:42 +0000 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-12-17 14:19:05 +0100 |
| commit | c14e749957d49adf2c30975a0678003419592844 (patch) | |
| tree | 010629baac8c929035d4d585358b799e77842bca | |
| parent | 3f1c48afa52bc1bedd575a220a6ddc00259d6907 (diff) | |
| download | buildroot-c14e749957d49adf2c30975a0678003419592844.tar.gz buildroot-c14e749957d49adf2c30975a0678003419592844.zip | |
systemd: enable selinux if libselinux is enabled
systemd currently has selinux disabled unconditionally. This prevents
/sys/fs/selinux from being mounted automatically at boot which causes
audit to no longer function. This patch fixes the problem by checking if
libselinux is enabled and enabling support for selinux in systemd if so.
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
| -rw-r--r-- | package/systemd/systemd.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index fa07bd0572..278c8e93cc 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -30,7 +30,6 @@ SYSTEMD_CONF_OPTS += \ --enable-blkid \ --enable-static=no \ --disable-manpages \ - --disable-selinux \ --disable-pam \ --disable-ima \ --disable-libcryptsetup \ @@ -153,6 +152,13 @@ else SYSTEMD_CONF_OPTS += --disable-microhttpd --disable-qrencode endif +ifeq ($(BR2_PACKAGE_LIBSELINUX),y) +SYSTEMD_DEPENDENCIES += libselinux +SYSTEMD_CONF_OPTS += --enable-selinux +else +SYSTEMD_CONF_OPTS += --disable-selinux +endif + ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y) SYSTEMD_CONF_OPTS += --enable-hwdb else |

