Trouble building a selinux toolchain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list!

I am attempting to build a selinux toolchain for development of policy for an embedded device.  I am required by our development lead to use centos6.5 as my host for policy compilation and testing.

CentOS6.5, by default, has a checkpolicy, and setools supporting up to policy.24, however, the refpolicy I would like to start with includes features that are not supported in 24.  So, I am trying to build a toolchain to compile/develop/test a policy.29.

The features I need for development and testing are: checkpolicy/checkmodule, audit2allow, and apol/qpol libraries, sediff, and secmds from the setools project.

I don't seem to have any trouble getting libsepol, libselinux, sepolgen, libsemanage, and checkpolicy to install to /opt/setoolchain.  And I can compile a policy.29 at this point.  But I am now trying to get setools to even compile using the headers and libraries in my /opt/toolchain, without any luck.

here is some version info:
checkpolicy-2.3
libselinux-2.3
libsemanage-2.3
libsepol-2.3
sepolgen-1.2.1
setools-3.3.8
gcc-4.7.4
Python-2.7.7

When trying to configure setools, with this command:
$ ./configure --prefix=/opt/setoolchain --disable-bwidget-check --with-selinux-devel=/opt/setoolchain/usr --with-sepol-devel=/opt/setoolchain/usr

I wind up with this error:
checking for running SELinux system... yes
checking for sepol/sepol.h... checking sepol/sepol.h usability... yes
checking sepol/sepol.h presence... yes
checking for sepol/sepol.h... yes
checking for sepol_policydb_read in -lsepol... yes
checking selinux/selinux.h usability... yes
checking selinux/selinux.h presence... yes
checking for selinux/selinux.h... yes
checking selinux/context.h usability... yes
checking selinux/context.h presence... yes
checking for selinux/context.h... yes
checking for selinux_policy_root in -lselinux... no
configure: error: could not find libselinux at /opt/setoolchain/usr/lib

However, when I list the contents everything seems to be in order:
$ ls -la /opt/setoolchain/usr/lib
total 1712
drwxr-xr-x. 3 root root   4096 Aug 29 12:10 .
drwxr-xr-x. 8 root root   4096 Aug 29 11:25 ..
-rw-r--r--. 1 root root 323516 Aug 29 11:23 libselinux.a
lrwxrwxrwx. 1 root root     25 Aug 29 11:23 libselinux.so -> ../../lib/libselinux.so.1
-rw-r--r--. 1 root root 478528 Aug 29 11:29 libsemanage.a
lrwxrwxrwx. 1 root root     16 Aug 29 11:29 libsemanage.so -> libsemanage.so.1
-rwxr-xr-x. 1 root root 317053 Aug 29 11:29 libsemanage.so.1
-rw-r--r--. 1 root root 617652 Aug 29 11:19 libsepol.a
lrwxrwxrwx. 1 root root     23 Aug 29 11:19 libsepol.so -> ../../lib/libsepol.so.1
drwxr-xr-x. 2 root root   4096 Aug 29 11:29 pkgconfig

Sorry for the long email.  Any suggestions would be appreciated.

Thanks,
Judd Meinders

_______________________________________________
Selinux mailing list
Selinux@xxxxxxxxxxxxx
To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx.
To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux