summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-14 13:40:53 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-14 22:12:44 +0100
commit61ef30515b44c478cf1aa1155d5b306f09c9dc5a (patch)
treecb73188ec7553fa1b5dab2b9c6f659e6ecb7173c /src/core/manager.c
parent7c76e1812d2c6de1e597e2fc2db288c1ac9656a3 (diff)
downloadsystemd-61ef30515b44c478cf1aa1155d5b306f09c9dc5a.tar.gz
shared: add new safe_fork flag FORK_PRIVATE_TMP
If the flag is set, we mount /tmp/ in a way that is suitable for generators and other quick jobs. Unfortunately I had to move some code from shared/mount-util.c to basic/mountpoint-util.c. The functions that are moved are very thin wrappers around mount(2), so this doesn't actually change much in the code split between libbasic and libshared. Implications for the host would be weird if a private mount namespace is not used, so assert on FORK_NEW_MOUNTNS when the flag is used.
Diffstat (limited to 'src/core/manager.c')
0 files changed, 0 insertions, 0 deletions