[Buildroot] [PATCH 2/2] logrotate: enable selinux support.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Feb 7 16:43:42 UTC 2017


Hello,

On Tue,  7 Feb 2017 09:04:11 -0500, Adam Duskett wrote:
> Selinux is currently disabled staticly in logrotate. This patch
> fixes this by checking for libselinux and adding it as a dependecy
> if it has been selected.  The configure script is set to check for
> libselinux by default, so I only set --without-selinux implicitly
> if libselinux hasn't been selected, otherwise it's left alone.

No, we really want --with-selinux. If you don't pass --with-selinux,
then the default beaviour of this configure is to "check", which means
that if it finds SELinux support, it enables it, otherwise it moves on
with SELinux disabled.

But in Buildroot, if we enable SELinux support, we really want it. We
don't want package to silently ignore it if there's some kind of error.
Which is why for all optional dependencies, we always explicitly
enable/disable it.

I've fixed that up and applied.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list