Remove custom SELinux policy
This was a temporary hack until the requisite bits landed upstream in the Fedora SELinux policy.
This commit is contained in:
1 parent
b6b7d37c9d
commit
ba4f7ac7be
8 files changed
-105
No files matched your search
@@ -44,19 +44,6 @@ Requires: %{name} = %{version}-%{release}
|
||||
%description devel
|
||||
The %{name}-devel package includes the header files for the %{name} library.
|
||||
|
||||
%package selinux
|
||||
Summary: SELinux policy module for %{name}
|
||||
Group: System Environment/Base
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: policycoreutils, libselinux-utils
|
||||
Requires(post): selinux-policy-base, policycoreutils
|
||||
Requires(postun): policycoreutils
|
||||
BuildRequires: selinux-policy-devel
|
||||
BuildArch: noarch
|
||||
|
||||
%description selinux
|
||||
This package installs and sets up the SELinux policy security module for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n ostree-%{version}
|
||||
|
||||
@@ -65,7 +52,6 @@ env NOCONFIGURE=1 ./autogen.sh
|
||||
%configure --disable-silent-rules \
|
||||
--enable-gtk-doc \
|
||||
--with-selinux \
|
||||
--enable-selinux-custom-policy \
|
||||
--with-dracut
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@@ -83,14 +69,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%preun
|
||||
%systemd_preun ostree-remount.service
|
||||
|
||||
%post selinux
|
||||
semodule -n -i %{_datadir}/selinux/packages/%{name}.pp
|
||||
|
||||
%postun selinux
|
||||
if [ $1 -eq 0 ]; then
|
||||
semodule -n -r %{name}
|
||||
fi
|
||||
|
||||
%files
|
||||
%doc COPYING README.md
|
||||
%{_bindir}/ostree
|
||||
@@ -113,6 +91,3 @@ fi
|
||||
%dir %{_datadir}/gtk-doc/html/ostree
|
||||
%{_datadir}/gtk-doc/html/ostree
|
||||
%{_datadir}/gir-1.0/OSTree-1.0.gir
|
||||
|
||||
%files selinux
|
||||
%attr(0600,root,root) %{_datadir}/selinux/packages/%{name}.pp
|
||||
Reference in new issue
Block a user