Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
use pre-built selinux policy module
Browse files Browse the repository at this point in the history
Bug: 1259591
  • Loading branch information
matt8754 committed Sep 8, 2015
1 parent cd4c4a5 commit ba260bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ documentation/_build
documentation/_static
/tito-output
/selinux/*.if
/selinux/*.pp
/selinux/tmp/
8 changes: 6 additions & 2 deletions beah.spec
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ BuildRequires: pylint
%endif
%if %{with_selinux_policy}
BuildRequires: selinux-policy-devel
Requires: selinux-policy >= %{_selinux_policy_version}
%endif

%description
Expand All @@ -110,7 +109,12 @@ Powered by Twisted.
%build
%{__python} setup.py build
%if %{with_selinux_policy}
make -C selinux -f %{_datadir}/selinux/devel/Makefile
if [ -e "selinux/beah%{?dist}.pp" ]; then
# use pre-compiled selinux policy
cp -p selinux/beah%{?dist}.pp selinux/beah.pp
else
make -C selinux -f %{_datadir}/selinux/devel/Makefile
fi
%endif

%install
Expand Down
Binary file added selinux/beah.el7.pp
Binary file not shown.

0 comments on commit ba260bb

Please sign in to comment.