/var/run has incorrect selinux context after installatio to disk image (#1034922)

This commit is contained in:
Ondřej Vašík 2014-05-28 14:02:18 +02:00
parent af5679751d
commit 221011c16f

View File

@ -1,7 +1,7 @@
Summary: The basic directory layout for a Linux system
Name: filesystem
Version: 3.2
Release: 24%{?dist}
Release: 25%{?dist}
License: Public Domain
URL: https://fedorahosted.org/filesystem
Group: System Environment/Base
@ -139,6 +139,16 @@ posix.symlink("../run", "/var/run")
posix.symlink("../run/lock", "/var/lock")
return 0
%posttrans
#we need to restorecon on some dirs created in %pretrans or by other packages
restorecon /var/run 2>/dev/null >/dev/null || :
restorecon /var/lock 2>/dev/null >/dev/null || :
restorecon -r /usr/lib/debug/ 2>/dev/null >/dev/null || :
restorecon /sys 2>/dev/null >/dev/null || :
restorecon /boot 2>dev/null >/dev/null || :
restorecon /proc 2>dev/null >/dev/null || :
restorecon /dev 2>dev/null >/dev/null || :
%files -f filelist
%defattr(0755,root,root,-)
%dir %attr(555,root,root) /
@ -245,6 +255,10 @@ return 0
/var/yp
%changelog
* Thu Mar 13 2014 Ondrej Vasik <ovasik@redhat.com> - 3.2-25
- /var/run has incorrect selinux context after installation
to disk image (#1034922)
* Fri Jan 10 2014 Ondrej Vasik <ovasik@redhat.com> - 3.2-24
- refresh the list of lang-exceptions from rawhide repo