-
Notifications
You must be signed in to change notification settings - Fork 67
SETools 4 on Ubuntu 15
Papac85 edited this page Nov 1, 2016
·
7 revisions
SETools now requires libsepol 2.5, which is not available on Ubuntu 15. The following instructions are no longer complete.
This doc describes how to install setools 4 on ubuntu 15.10 with python2.7.
$ sudo apt-get install bison flex libsepol1 swig gcc libbz2-dev mock
$ sudo apt-get install libsepol1-dev sepol-utils libselinux1-dev selinux-utils libselinux1
$ sudo apt-get install python-PyQt5 python-selinux python-setools python-mock python-pip python2.7-dev
$ sudo pip install networkx
if you want to pass all tests, you should install libsepol from sourcecode and apply libsepol-2.4-mls-semantic-level-expand.patch.
you can apply the patch simply:
$ patch -p1 < patches/use-libsepol-2.3.diff
export SEPOL=/usr/lib/x86_64-linux-gnu/libsepol.a
python setup.py build
sudo -E python setup.py install