1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-27 11:32:21 +02:00

linux-container: Reset jailed root permissions.

* gnu/build/linux-container.scm (mount-file-systems): Add 'chmod' call.
* tests/containers.scm
("call-with-container, mnt namespace, root permissions"): New test.
This commit is contained in:
Jelle Licht
2020-09-29 23:25:13 +02:00
parent 7dc19c33fc
commit e748183538
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -170,7 +170,8 @@ for the process."
(pivot-root root put-old)
(chdir "/")
(umount "real-root" MNT_DETACH)
(rmdir "real-root")))
(rmdir "real-root")
(chmod "/" #o755)))
(define* (initialize-user-namespace pid host-uids
#:key (guest-uid 0) (guest-gid 0))