pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit 8f630af3149169b3cbf68fd8741b74c241b51959
parent 67d3f04c9cfb92e39dc585bbc8c84ea54aba3389
Author: Jan Pobříslo <ccx@te2000.cz>
Date:   Thu, 22 Feb 2024 08:55:45 +0100

Mount /dev recursively

Diffstat:
Muserns_sandbox.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/userns_sandbox.py b/userns_sandbox.py @@ -359,7 +359,12 @@ class Settings: def sandbox_run(settings, command): mount('proc', settings.root / 'proc', 'proc', MountFlag.NOSUID | MountFlag.NODEV) if not (settings.root / 'dev/null').is_char_device(): - mount('/dev', settings.root / 'dev', None, (MountFlag.BIND | MountFlag.NOSUID)) + mount( + '/dev', + settings.root / 'dev', + None, + (MountFlag.BIND | MountFlag.NOSUID | MountFlags.REC), + ) mountpoints = [ MountTMPFS(relpath('/dev/shm')),