import filesystem-3.8-6.el8

This commit is contained in:
CentOS Sources 2021-06-22 04:20:28 +00:00 committed by Andrew Lukoshko
parent 484aca48c9
commit 966515f65f
1 changed files with 21 additions and 3 deletions

View File

@ -1,7 +1,7 @@
Summary: The basic directory layout for a Linux system
Name: filesystem
Version: 3.8
Release: 4%{?dist}
Release: 6%{?dist}
License: Public Domain
URL: https://pagure.io/filesystem
Group: System Environment/Base
@ -153,6 +153,19 @@ posix.symlink("../.dwz", "/usr/lib/debug/usr/.dwz")
posix.symlink("usr/sbin", "/usr/lib/debug/sbin")
posix.symlink("usr/%{_lib}", "/%{_lib}")
posix.mkdir("/run")
posix.mkdir("/proc")
posix.mkdir("/sys")
st = posix.stat("/proc")
if st and st.mode ~= 0555 then
posix.chmod("/proc", 0555)
end
st = posix.stat("/sys")
if st and st.mode ~= 0555 then
posix.chmod("/sys", 0555)
end
st = posix.stat("/media")
if st and st.type == "link" then
os.remove("/media")
@ -170,6 +183,7 @@ 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 || :
restorecon /media 2>/dev/null >/dev/null || :
@ -201,12 +215,12 @@ restorecon /media 2>/dev/null >/dev/null || :
/media
%dir /mnt
%dir /opt
%attr(555,root,root) /proc
%ghost %attr(555,root,root) /proc
%ghost %attr(555,root,root) /sys
%attr(550,root,root) /root
/run
/sbin
/srv
%attr(555,root,root) /sys
%attr(1777,root,root) /tmp
%dir /usr
%attr(555,root,root) /usr/bin
@ -300,6 +314,10 @@ restorecon /media 2>/dev/null >/dev/null || :
/var/yp
%changelog
* Mon Jun 21 2021 Pavel Zhukov <pzhukov@redhat.com> - 3.8-6
- Make /proc and /sys ghost to workaround issue in container
- Revert restorecon change
* Thu Apr 23 2020 Pavel Zhukov <pzhukov@redhat.com> - 3.8-4
- Do not restore content of /proc (#1827087)