systemd: enable selinux if libselinux is selected.
PATCH v2 1/1 systemd: enable selinux if libselinux is selected.
systemd currently has selinux disabled statically. 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 to see if libselinux is selected and enabling support for selinux if so.
---
Changes v1 - v2:
- Added SYSTEMD_DEPENDENCIES += libselinux in the case that libselinux was selected.
package/systemd/systemd.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/systemd/systemd.mk +7 -1
@@ -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
Signature · 1 line
2.9.3
Thomas Petazzoni
AppliedPATCH v2 1/1 systemd: enable selinux if libselinux is selected.
Hello,
Quoted 11 lines · Adam Duskett
systemd currently has selinux disabled statically. This prevents
/sys/fs/selinuxfrom being mounted automatically at boot which causes audit to no longer function. This patch fixes the problem by checking to see if libselinux is selected and enabling support for selinux if so.Signed-off-by Adam Duskett <[email protected]>---
Changes v1 - v2:
- AddedSYSTEMD_DEPENDENCIES+= libselinux in the case that libselinux was selected.
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com