From d77a09e5b5a8f461e8fbebd11c0a59162dbb22ac4614ec5e985759d30395f366 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Fri, 20 Nov 2020 12:30:44 +0000 Subject: [PATCH] Accepting request 848889 from home:lnussel:branches:Base:System - /proc and /sys should be %ghost to allow filesystem package updates in rootless container environments (rh#1548403) OBS-URL: https://build.opensuse.org/request/show/848889 OBS-URL: https://build.opensuse.org/package/show/Base:System/filesystem?expand=0&rev=188 --- directory.list | 2 -- filesystem.changes | 6 ++++++ filesystem.spec | 2 ++ ghost.list | 2 ++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/directory.list b/directory.list index 094b426..34c4882 100644 --- a/directory.list +++ b/directory.list @@ -29,7 +29,6 @@ 0755 root root /lib/firmware 0755 root root /mnt 0755 root root /opt -0555 root root /proc 0700 root root /root 0700 root root /root/.gnupg 0755 root root /root/bin @@ -38,7 +37,6 @@ 0755 root root /srv/www 0755 root root /srv/www/cgi-bin 0755 root root /srv/www/htdocs -0555 root root /sys 1777 root root /tmp 0755 root root /usr 0755 root root /usr/bin diff --git a/filesystem.changes b/filesystem.changes index 330221a..d36f6f3 100644 --- a/filesystem.changes +++ b/filesystem.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 16 14:22:50 UTC 2020 - Ludwig Nussel + +- /proc and /sys should be %ghost to allow filesystem package updates in + rootless container environments (rh#1548403) + ------------------------------------------------------------------- Sat Oct 10 12:41:34 UTC 2020 - Callum Farmer diff --git a/filesystem.spec b/filesystem.spec index 9d7c09d..b0892c1 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -237,6 +237,8 @@ if posix.stat("/var/lock.rpmsave.tmpx") then os.execute("mv /var/lock.rpmsave.tmpx/* /var/lock") os.remove("/var/lock.rpmsave.tmpx") end +posix.mkdir("/proc") +posix.mkdir("/sys") %files -f filesystem.list /usr/lib/tmpfiles.d/fs-tmp.conf diff --git a/ghost.list b/ghost.list index 473a0f4..6770cde 100644 --- a/ghost.list +++ b/ghost.list @@ -0,0 +1,2 @@ +0555 root root /proc +0555 root root /sys