- Add /etc/tmpfiles.d support for /var/run/setrans

This commit is contained in:
Dan Walsh 2010-12-02 15:19:26 -05:00
parent 3dcd5c3eb3
commit 8b8064a26e
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@
Summary: SELinux library and simple utilities
Name: libselinux
Version: 2.0.96
Release: 8%{?dist}
Release: 9%{?dist}
License: Public Domain
Group: System Environment/Libraries
Source: http://www.nsa.gov/research/selinux/%{name}-%{version}.tgz
@ -147,6 +147,8 @@ mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}/var/run/setrans
mkdir -p %{buildroot}/etc/tmpfiles.d
echo "d /var/run/setrans 0755 root root" > %{buildroot}/etc/tmpfiles.d/libselinux.conf
InstallPythonWrapper %{__python} python2
%if 0%{?with_python3}
@ -186,6 +188,7 @@ exit 0
/%{_lib}/libselinux.so.*
/var/run/setrans
/sbin/matchpathcon
/etc/tmpfiles.d/libselinux.conf
%files utils
%defattr(-,root,root,-)
@ -233,6 +236,9 @@ exit 0
%{ruby_sitearch}/selinux.so
%changelog
* Wed Dec 2 2010 Dan Walsh <dwalsh@redhat.com> - 2.0.96-9
- Add /etc/tmpfiles.d support for /var/run/setrans
* Sun Nov 24 2010 Dan Walsh <dwalsh@redhat.com> - 2.0.96-8
- Ghost /var/run/setrans