diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-02-02 18:56:12 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-07-07 11:20:42 +0200 |
commit | e2ec9c4d3abf49e95565574214f8979d819e3f48 (patch) | |
tree | a181ae36c1b239549e324186c0c80a03a39dc77f /src/basic/namespace-util.h | |
parent | cda667722c2218cf1a0185284d2a87f8a25f1b2d (diff) | |
download | systemd-e2ec9c4d3abf49e95565574214f8979d819e3f48.tar.gz |
namespace-util: introduce helper for combining unshare() + MS_SLAVE remount
We have multiple places we do these two non-trivial operations together,
let's introduce a unified helper for doing both at once.
Diffstat (limited to 'src/basic/namespace-util.h')
-rw-r--r-- | src/basic/namespace-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/namespace-util.h b/src/basic/namespace-util.h index 8c17ce91b2..99d9b977ed 100644 --- a/src/basic/namespace-util.h +++ b/src/basic/namespace-util.h @@ -7,3 +7,5 @@ int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *netns_fd, int * int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int root_fd); int fd_is_network_ns(int fd); + +int detach_mount_namespace(void); |