Hi Naveen, On Mon, Jul 25, 2011 at 06:47:36PM -0700, Naveen Nathan wrote: > I'm trying to compile busybox on Android with SELinux support. > > I'm using the latest git, with the android_defconfig, and the supplied > android_build script. Looking back on the mailing list, someone else > appeared to have the same issue which was supposedly fixed with: > http://git.busybox.net/busybox/commit/?id=6ec1510f719ad7463d76eea9284428cc605d6b > > But this doesn't seem to be the case. I've tried to include the headers > from the cross compiled kernel by supplying options to CONFIG_EXTRA_CFLAGS > in the .config, but still have issues compiling.
These headers (e.g. selinux/selinux.h) are not part of the kernel. They come from the libselinux library. You must have them installed in your build environment in order to build a SELinux enabled Busybox. See http://userspace.selinuxproject.org/trac. baruch > Output I'm receiving when compiling: > > $ ./android_build > CC applets/applets.o > In file included from include/busybox.h:8, > from applets/applets.c:9: > include/libbb.h:56:30: error: selinux/selinux.h: No such file or directory > include/libbb.h:57:30: error: selinux/context.h: No such file or directory > include/libbb.h:58:28: error: selinux/flask.h: No such file or directory > include/libbb.h:59:37: error: selinux/av_permissions.h: No such file or > directory > In file included from include/busybox.h:8, > from applets/applets.c:9: > include/libbb.h:1256: error: expected ')' before 'sid' > include/libbb.h:1257: error: expected '=', ',', ';', 'asm' or '__attribute__' > before 'set_security_context_component' > include/libbb.h:1259: error: expected ')' before 'scontext' > make[1]: *** [applets/applets.o] Error 1 > make: *** [applets_dir] Error 2 > > Any assistance would be appreciated. > > Thanks. -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il - _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
