Improve -selinux packaging to follow the guidelines
https://fedoraproject.org/wiki/SELinux/IndependentPolicy Related: RHEL-1368
This commit is contained in:
parent
e59366c622
commit
63ac76bd62
@ -1,5 +1,5 @@
|
||||
%global selinuxtype targeted
|
||||
%global moduletype contrib
|
||||
%global moduletype distributed
|
||||
%define semodule_version 1.0
|
||||
|
||||
Summary: Application Whitelisting Daemon
|
||||
@ -142,7 +142,7 @@ chmod 644 %{buildroot}/%{_datadir}/%{name}/default-ruleset.known-libs
|
||||
install -d %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
|
||||
install -m 0644 %{name}-selinux-%{semodule_version}/%{name}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
|
||||
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
|
||||
install -p -m 644 %{name}-selinux-%{semodule_version}/%{name}.if %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{name}.if
|
||||
install -p -m 644 %{name}-selinux-%{semodule_version}/%{name}.if %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}/%{name}.if
|
||||
|
||||
#cleanup
|
||||
find %{buildroot} \( -name '*.la' -o -name '*.a' \) -delete
|
||||
@ -214,7 +214,7 @@ fi
|
||||
%files selinux
|
||||
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||
%ghost %verify(not md5 size mode mtime) %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
|
||||
%{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{name}.if
|
||||
%{_datadir}/selinux/devel/include/%{moduletype}/%{name}.if
|
||||
|
||||
%post selinux
|
||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user