]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not make private /dev/ read-only too soon
authorLuca Boccassi <bluca@debian.org>
Thu, 7 Dec 2023 22:19:11 +0000 (22:19 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 02:09:14 +0000 (11:09 +0900)
commitae7482b994e6a9bc8e033de9accd24b1e1ffe2ed
tree2266e5af0f0b246ef9f663dc4955b796c75927f1
parent0122c7d060c03c116bd5931c53580f000b2b920e
core: do not make private /dev/ read-only too soon

The read-only bit is flipped after setting up all the mounts, so that
bind mounts can be added. Remove the early config, and add a unit
test.

Fixes https://github.com/systemd/systemd/issues/30372
src/core/namespace.c
src/test/test-execute.c
test/test-execute/exec-privatedevices-bind.service [new file with mode: 0644]