/var/run has incorrect selinux context after installatio to disk image (#1034922)
This commit is contained in:
parent
af5679751d
commit
221011c16f
@ -1,7 +1,7 @@
|
|||||||
Summary: The basic directory layout for a Linux system
|
Summary: The basic directory layout for a Linux system
|
||||||
Name: filesystem
|
Name: filesystem
|
||||||
Version: 3.2
|
Version: 3.2
|
||||||
Release: 24%{?dist}
|
Release: 25%{?dist}
|
||||||
License: Public Domain
|
License: Public Domain
|
||||||
URL: https://fedorahosted.org/filesystem
|
URL: https://fedorahosted.org/filesystem
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -139,6 +139,16 @@ posix.symlink("../run", "/var/run")
|
|||||||
posix.symlink("../run/lock", "/var/lock")
|
posix.symlink("../run/lock", "/var/lock")
|
||||||
return 0
|
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
|
%files -f filelist
|
||||||
%defattr(0755,root,root,-)
|
%defattr(0755,root,root,-)
|
||||||
%dir %attr(555,root,root) /
|
%dir %attr(555,root,root) /
|
||||||
@ -245,6 +255,10 @@ return 0
|
|||||||
/var/yp
|
/var/yp
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jan 10 2014 Ondrej Vasik <ovasik@redhat.com> - 3.2-24
|
||||||
- refresh the list of lang-exceptions from rawhide repo
|
- refresh the list of lang-exceptions from rawhide repo
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user