Skip to content

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.

install ubuntu/python packages

$ 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.

apply patch for using libsepol-2.3

you can apply the patch simply:

   $ patch -p1 < patches/use-libsepol-2.3.diff

build and install

export SEPOL=/usr/lib/x86_64-linux-gnu/libsepol.a
python setup.py build
sudo -E python setup.py install
Clone this wiki locally