[Buildroot] [PATCH] package/libselinux: fix the selinuxfs mount point

Matthew Weber matthew.weber at rockwellcollins.com
Tue Oct 6 19:41:19 UTC 2020


Antoine,

On Tue, Oct 6, 2020 at 10:46 AM Antoine Tenart
<antoine.tenart at bootlin.com> wrote:
>
> For 9 years the recommended mount point for selinuxfs has been
> /sys/fs/selinux, as stated in Linux kernel commit 7a627e3b9a2b:
>
> """
> For selinuxfs, this mount point should be in /sys/fs/selinux/
> """
>
> As other projects follow this convention, not doing so result in
> potential issues. One of them is the refpolicy not correctly labelling
> and supporting the mount point.
>
> Fix this by using /sys/fs/selinux as of now in Buildroot.
>
> Signed-off-by: Antoine Tenart <antoine.tenart at bootlin.com>

I just asked Clayton Shotwell why we originally set it to /selinux and
our best guess was that we were following the pattern WindRiver had
done on their Secure Linux 1.0 (Fedora based?).

Reviewed-by: Matthew Weber <matthew.weber at rockwellcollins.com>



More information about the buildroot mailing list