nfs-ganesha 2.7.1, fix selinux
Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
parent
c1ed297730
commit
e2b082d005
@ -128,7 +128,7 @@ Requires: openSUSE-release
|
|||||||
|
|
||||||
Name: nfs-ganesha
|
Name: nfs-ganesha
|
||||||
Version: 2.7.1
|
Version: 2.7.1
|
||||||
Release: 3%{?dev:%{dev}}%{?dist}
|
Release: 4%{?dev:%{dev}}%{?dist}
|
||||||
Summary: NFS-Ganesha is a NFS Server running in user space
|
Summary: NFS-Ganesha is a NFS Server running in user space
|
||||||
License: LGPLv3+
|
License: LGPLv3+
|
||||||
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
|
Url: https://github.com/nfs-ganesha/nfs-ganesha/wiki
|
||||||
@ -296,7 +296,7 @@ to the ganesha.nfsd server, it makes it possible to trace using LTTng.
|
|||||||
%if %{with rados_recov}
|
%if %{with rados_recov}
|
||||||
%package rados-grace
|
%package rados-grace
|
||||||
Summary: The NFS-GANESHA command for managing the RADOS grace database
|
Summary: The NFS-GANESHA command for managing the RADOS grace database
|
||||||
BuildRequires: librados-devel >= 0.61
|
BuildRequires: librados-devel >= 14.0.0
|
||||||
Requires: nfs-ganesha = %{version}-%{release}
|
Requires: nfs-ganesha = %{version}-%{release}
|
||||||
|
|
||||||
%description rados-grace
|
%description rados-grace
|
||||||
@ -345,7 +345,7 @@ be used with NFS-Ganesha to support GPFS backend
|
|||||||
%package ceph
|
%package ceph
|
||||||
Summary: The NFS-GANESHA CephFS FSAL
|
Summary: The NFS-GANESHA CephFS FSAL
|
||||||
Requires: nfs-ganesha = %{version}-%{release}
|
Requires: nfs-ganesha = %{version}-%{release}
|
||||||
BuildRequires: libcephfs2-devel >= 12.2.0
|
BuildRequires: libcephfs2-devel >= 14.0.0
|
||||||
|
|
||||||
%description ceph
|
%description ceph
|
||||||
This package contains a FSAL shared object to
|
This package contains a FSAL shared object to
|
||||||
@ -357,7 +357,7 @@ be used with NFS-Ganesha to support CephFS
|
|||||||
%package rgw
|
%package rgw
|
||||||
Summary: The NFS-GANESHA Ceph RGW FSAL
|
Summary: The NFS-GANESHA Ceph RGW FSAL
|
||||||
Requires: nfs-ganesha = %{version}-%{release}
|
Requires: nfs-ganesha = %{version}-%{release}
|
||||||
BuildRequires: librgw2-devel >= 12.2.0
|
BuildRequires: librgw2-devel >= 14.0.0
|
||||||
|
|
||||||
%description rgw
|
%description rgw
|
||||||
This package contains a FSAL shared object to
|
This package contains a FSAL shared object to
|
||||||
@ -430,18 +430,18 @@ Requires(post): policycoreutils
|
|||||||
This package contains an selinux policy for running ganesha.nfsd
|
This package contains an selinux policy for running ganesha.nfsd
|
||||||
|
|
||||||
%post selinux
|
%post selinux
|
||||||
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/ganesha.pp.bz2
|
%selinux_modules_install %{_selinux_store_path}/packages/ganesha.pp.bz2
|
||||||
|
|
||||||
%pre selinux
|
%pre selinux
|
||||||
%selinux_relabel_pre -s %{selinuxtype}
|
%selinux_relabel_pre
|
||||||
|
|
||||||
%postun selinux
|
%postun selinux
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
%selinux_modules_uninstall -s contrib ganesha
|
%selinux_modules_uninstall ganesha
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
%selinux_relabel_post -s contrib
|
%selinux_relabel_post
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
@ -603,10 +603,10 @@ install -m 755 scripts/init.d/nfs-ganesha.gpfs %{buildroot}%{_sysconfdir}/init.
|
|||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
%if ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
|
%if ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
|
||||||
install -d %{buildroot}%{_datadir}/selinux/packages
|
install -d %{buildroot}%{_selinux_store_path}/packages
|
||||||
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/contrib
|
install -d -p %{buildroot}%{_selinux_store_path}/devel/include/contrib
|
||||||
install -p -m 644 selinux/ganesha.if %{buildroot}%{_datadir}/selinux/devel/include/contrib
|
install -p -m 644 selinux/ganesha.if %{buildroot}%{_selinux_store_path}/devel/include/contrib
|
||||||
install -m 0644 selinux/ganesha.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
|
install -m 0644 selinux/ganesha.pp.bz2 %{buildroot}%{_selinux_store_path}/packages
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@ -792,8 +792,8 @@ exit 0
|
|||||||
|
|
||||||
%if ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
|
%if ( 0%{?fedora} >= 30 || 0%{?rhel} >= 8 )
|
||||||
%files selinux
|
%files selinux
|
||||||
%attr(0644,root,root) %{_datadir}/selinux/packages/ganesha.pp.bz2
|
%attr(0644,root,root) %{_selinux_store_path}/packages/ganesha.pp.bz2
|
||||||
%attr(0644,root,root) %{_datadir}/selinux/devel/include/contrib/ganesha.if
|
%attr(0644,root,root) %{_selinux_store_path}/devel/include/contrib/ganesha.if
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if ! %{with system_ntirpc}
|
%if ! %{with system_ntirpc}
|
||||||
@ -849,6 +849,9 @@ exit 0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 18 2018 Kaleb S. KEITHLEY <kkeithle at redhat.com> - 2.7.1-4
|
||||||
|
- nfs-ganesha 2.7.1, fix selinux
|
||||||
|
|
||||||
* Fri Dec 7 2018 Kaleb S. KEITHLEY <kkeithle at redhat.com> - 2.7.1-3
|
* Fri Dec 7 2018 Kaleb S. KEITHLEY <kkeithle at redhat.com> - 2.7.1-3
|
||||||
- nfs-ganesha 2.7.1, rebuild w/ ceph-14
|
- nfs-ganesha 2.7.1, rebuild w/ ceph-14
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user