Compiling with SElinux support in a buildroot environment

Denys Vlasenko vda.linux at googlemail.com
Sun Mar 27 23:25:00 UTC 2011


On Tuesday 22 March 2011 17:51, Steve Iribarne wrote:
> On 03/17/2011 01:25 PM, Steve Iribarne wrote:
> > Lars Nordin<Lars.Nordin<at>  LNdata.se>  writes:
> >
> >> Hi,
> >>
> >> I'm trying to build busybox 1.17.4 with SElinux-support in a buildroot
> >> 2010.11 environment. I have added libselinux  an libsepol as packages in
> >> buildroot, I have output/staging/usr/include/selinux/selinux.h, but
> >> busybox will not find the include file:
> >> In file included from applets/../include/busybox.h:10,
> >>                    from applets/applet_tables.c:16:
> >> applets/../include/libbb.h:50: fatal error: selinux/selinux.h: No such
> >> file or directory
> >>
> >> The compiler flag has include for the staging dir
> >> -I/buildroot-2010.11/output/staging/usr/include .
> >>
> >> I'm confused, should SElinux be added in some other way?
> >>
> >> /Lars
> >>
> >
> > I second your confusion.
> >
> > I'm seeing this with 1.15.3.  The way I got around it is by installing the
> > selinux-policy-dev package on Ubuntu, the system I cross compile on.
> >
> > But that makes absolutely no sense.
> 
> Bump...

Should be fixed in git:

http://git.busybox.net/busybox/commit/?id=6ec1510f719ad7463d76eea9284428cc605d6b38

-- 
vda


More information about the busybox mailing list