/var/log/ganesha -> ganesha_var_log_t
see https://github.com/nfs-ganesha/nfs-ganesha/issues/212
This commit is contained in:
parent
d05aff4352
commit
474e44d1ac
@ -102,7 +102,7 @@ Requires: openSUSE-release
|
||||
|
||||
Name: nfs-ganesha
|
||||
Version: 2.5.2
|
||||
Release: 5%{?dev:%{dev}}%{?dist}
|
||||
Release: 6%{?dev:%{dev}}%{?dist}
|
||||
Summary: NFS-Ganesha is a NFS Server running in user space
|
||||
Group: Applications/System
|
||||
License: LGPLv3+
|
||||
@ -497,7 +497,12 @@ make DESTDIR=%{buildroot} install
|
||||
%if ( 0%{?suse_version} )
|
||||
%service_add_post nfs-ganesha.service nfs-ganesha-lock.service nfs-ganesha-config.service
|
||||
%else
|
||||
semanage fcontext -a -t ganesha_var_log_t /var/log/ganesha/
|
||||
%if ( 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} > 6 ) )
|
||||
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha
|
||||
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log
|
||||
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha-gfapi.log
|
||||
restorecon %{_localstatedir}/log/ganesha
|
||||
%endif
|
||||
%if %{with_systemd}
|
||||
%systemd_post nfs-ganesha.service
|
||||
%systemd_post nfs-ganesha-lock.service
|
||||
@ -544,7 +549,7 @@ exit 0
|
||||
%dir %{_rundir}/ganesha
|
||||
%dir %{_libexecdir}/ganesha/
|
||||
%{_libexecdir}/ganesha/nfs-ganesha-config.sh
|
||||
%dir %attr(0755,ganesha,ganesha) %{_localstatedir}/log/ganesha
|
||||
%dir %attr(0755,ganesha,root) %{_localstatedir}/log/ganesha
|
||||
|
||||
%if %{with_systemd}
|
||||
%{_unitdir}/nfs-ganesha.service
|
||||
@ -707,6 +712,10 @@ exit 0
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Sep 27 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.5.2-6
|
||||
- /var/log/ganesha -> ganesha_var_log_t
|
||||
- see https://github.com/nfs-ganesha/nfs-ganesha/issues/212
|
||||
|
||||
* Fri Sep 22 2017 Kaleb S. KEITHLEY <kkeithle at redhat.com> 2.5.2-5
|
||||
- /var/log/ganesha -> ganesha_var_log_t
|
||||
- see https://github.com/nfs-ganesha/nfs-ganesha/issues/212
|
||||
|
Loading…
Reference in New Issue
Block a user