* [Buildroot] [PATCH 1/1] systemd: enable selinux if libselinux is selected.
@ 2016-12-15 21:23 Adam Duskett
2016-12-16 8:10 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Adam Duskett @ 2016-12-15 21:23 UTC (permalink / raw)
To: buildroot
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.
Signed-off-by: Adam Duskett <Adamduskett@outlook.com>
---
package/systemd/systemd.mk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
index fa07bd0..ca1f49e 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,12 @@ else
SYSTEMD_CONF_OPTS += --disable-microhttpd --disable-qrencode
endif
+ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
+SYSTEMD_CONF_OPTS += --enable-selinux
+else
+SYSTEMD_CONF_OPTS += --disable-selinux
+endif
+
ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)
SYSTEMD_CONF_OPTS += --enable-hwdb
else
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] systemd: enable selinux if libselinux is selected.
2016-12-15 21:23 [Buildroot] [PATCH 1/1] systemd: enable selinux if libselinux is selected Adam Duskett
@ 2016-12-16 8:10 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-12-16 8:10 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 15 Dec 2016 21:23:12 +0000, Adam Duskett wrote:
> diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk
> index fa07bd0..ca1f49e 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,12 @@ else
> SYSTEMD_CONF_OPTS += --disable-microhttpd --disable-qrencode
> endif
>
> +ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
> +SYSTEMD_CONF_OPTS += --enable-selinux
This lacks:
SYSTEMD_DEPENDENCIES += libselinux
Otherwise you are not guarantee that libselinux will be built before
systemd.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-16 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-15 21:23 [Buildroot] [PATCH 1/1] systemd: enable selinux if libselinux is selected Adam Duskett
2016-12-16 8:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox