fedora: Adjust path for SELinux policy and interface file to latest guidelines
Forget about: https://fedoraproject.org/wiki/SELinux_Policy_Modules_Packaging_Draft and: https://fedoraproject.org/wiki/PackagingDrafts/SELinux_Independent_Policy The guidelines to follow are: https://fedoraproject.org/wiki/SELinux/IndependentPolicy Start from fixing the most pressing issue, that is, a path conflict with policy-selinux-devel about passt.if, and, while at it, adjust the installation paths for policy files too. Reported-by: Xose Vazquez Perez <xose.vazquez@gmail.com> Link: https://bugzilla.redhat.com/show_bug.cgi?id=2182476 Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
387f4aca74
commit
b10b983fbd
1 changed files with 8 additions and 9 deletions
|
@ -62,17 +62,17 @@ ln -sr %{buildroot}%{_mandir}/man1/pasta.1 %{buildroot}%{_mandir}/man1/pasta.avx
|
||||||
|
|
||||||
pushd contrib/selinux
|
pushd contrib/selinux
|
||||||
make -f %{_datadir}/selinux/devel/Makefile
|
make -f %{_datadir}/selinux/devel/Makefile
|
||||||
install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/passt.pp
|
install -p -m 644 -D passt.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/contrib/passt.if
|
install -p -m 644 -D passt.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/passt.if
|
||||||
install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/pasta.pp
|
install -p -m 644 -D pasta.pp %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%pre selinux
|
%pre selinux
|
||||||
%selinux_relabel_pre -s %{selinuxtype}
|
%selinux_relabel_pre -s %{selinuxtype}
|
||||||
|
|
||||||
%post selinux
|
%post selinux
|
||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{name}/passt.pp
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{name}/pasta.pp
|
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
|
|
||||||
%postun selinux
|
%postun selinux
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
|
@ -102,10 +102,9 @@ fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files selinux
|
%files selinux
|
||||||
%dir %{_datadir}/selinux/packages/%{name}
|
%{_datadir}/selinux/packages/%{selinuxtype}/passt.pp
|
||||||
%{_datadir}/selinux/packages/%{name}/passt.pp
|
%{_datadir}/selinux/devel/include/distributed/passt.if
|
||||||
%{_datadir}/selinux/devel/include/contrib/passt.if
|
%{_datadir}/selinux/packages/%{selinuxtype}/pasta.pp
|
||||||
%{_datadir}/selinux/packages/%{name}/pasta.pp
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
{{{ passt_git_changelog }}}
|
{{{ passt_git_changelog }}}
|
||||||
|
|
Loading…
Reference in a new issue