pleasesubmitallbugreportsandpatchestoselinux @ tycho.NSA.gov。
subscribeviaselinux-join @ tycho.NSA.gov。
Build dependencies on Fedora:
yuminstallaudit-libs-develbisonbzip2- devel dbus-devel dbus-gli B- devel flex-devel flex-static glib2- devel libcap LPC rrpc
tobuildandinstalleverythingunderaprivatedirectory,run:
make destdir=~~/objinstallinstall-py wrap
toinstallasthedefaultsystemlibrariesandbinaries
(overwritinganypreviouslyinstalledones-dangerous! 请参阅。
on x86_64,run:
make libdir=/usr/lib 64 sh libdir=/lib 64安装安装- pywraprelabel
Ron x86 (32位)、run:
makeinstallinstall-pywraprelabel
thismayrenderyoursystemunusableiftheupstreamselinuxuserspace
lackslibraryfunctionsorotherdependenciesrelieduponbyyour
distribution. If it breaks,you get to keep both pieces。
toinstallibsepolonmacos (mainlyforpolicyanalysis ) :
cd libsepol; make destdir=/usr/local prefix=/usr/local install
thisrequiresgnucoreutils (brewinstallcoreutils )。
=====================================
添加了编译arm版本的方法
checkpolicy :此命令检查neverallow是否违规,语法是否正确等。 最后,checkpolicy打包policy.conf以生成二进制文件