buildroot: mount /sys as read-only
This will prevent any modification of anything in `/sys`. It will also prevent `udevadm tigger` to run, which needs /sys writeable. This is a desired effect, since uevents are not delivered to the contained environment, so `udevadm trigger` might hang.
This commit is contained in:
parent
5dc72038ef
commit
704d5d305a
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ class BuildRoot(contextlib.AbstractContextManager):
|
|||
|
||||
# Setup API file-systems.
|
||||
mounts += ["--proc", "/proc"]
|
||||
mounts += ["--bind", "/sys", "/sys"]
|
||||
mounts += ["--ro-bind", "/sys", "/sys"]
|
||||
mounts += ["--ro-bind-try", "/sys/fs/selinux", "/sys/fs/selinux"]
|
||||
|
||||
# There was a bug in mke2fs (fixed in versionv 1.45.7) where mkfs.ext4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue