]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: create inaccessible nodes for users when making runtime dirs
authorAnita Zhang <the.anitazha@gmail.com>
Tue, 19 Nov 2019 22:24:52 +0000 (14:24 -0800)
committerAnita Zhang <the.anitazha@gmail.com>
Wed, 18 Dec 2019 19:09:30 +0000 (11:09 -0800)
commite5f10cafe0bb1034505cba934cd6fae5f332b1dc
tree73b0aeade6ba5c0a0fb527449d3cecb394f9eb5a
parenta49ad4c482b8336f62f53da1a574e5b57e803271
core: create inaccessible nodes for users when making runtime dirs

To support ProtectHome=y in a user namespace (which mounts the inaccessible
nodes), the nodes need to be accessible by the user. Create these paths and
devices in the user runtime directory so they can be used later if needed.
src/core/mount-setup.c
src/core/namespace.c
src/login/user-runtime-dir.c
src/nspawn/nspawn-mount.c
src/nspawn/nspawn.c
src/shared/dev-setup.c
src/shared/mount-util.c
src/shared/mount-util.h
src/test/test-dev-setup.c
test/TEST-43-PRIVATEUSER-UNPRIV/test.sh
test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh