diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2019-11-19 23:24:52 +0100 |
---|---|---|
committer | Anita Zhang <the.anitazha@gmail.com> | 2019-12-18 20:09:30 +0100 |
commit | e5f10cafe0bb1034505cba934cd6fae5f332b1dc (patch) | |
tree | 73b0aeade6ba5c0a0fb527449d3cecb394f9eb5a /src/shared/mount-util.h | |
parent | core: add test case for PrivateUsers=true in user manager (diff) | |
download | systemd-e5f10cafe0bb1034505cba934cd6fae5f332b1dc.tar.xz systemd-e5f10cafe0bb1034505cba934cd6fae5f332b1dc.zip |
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.
Diffstat (limited to 'src/shared/mount-util.h')
-rw-r--r-- | src/shared/mount-util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/mount-util.h b/src/shared/mount-util.h index 8649fca39b..9a8d073631 100644 --- a/src/shared/mount-util.h +++ b/src/shared/mount-util.h @@ -31,4 +31,4 @@ int mount_option_mangle( unsigned long *ret_mount_flags, char **ret_remaining_options); -const char* mode_to_inaccessible_node(mode_t mode); +int mode_to_inaccessible_node(const char *runtime_dir, mode_t mode, char **dest); |