diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-14 22:36:35 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-04-06 16:08:23 +0200 |
commit | 2ad2f0c89e19d3c5af1ef002ade44910b8297006 (patch) | |
tree | da2a8978ea30aca7da72410435d9deda194e17f5 /src/basic/namespace-util.h | |
parent | namespace-util: add helper for allocating an empty userns fd (diff) | |
download | systemd-2ad2f0c89e19d3c5af1ef002ade44910b8297006.tar.xz systemd-2ad2f0c89e19d3c5af1ef002ade44910b8297006.zip |
namespace-util: add detach_mount_namespace_userns()
Diffstat (limited to '')
-rw-r--r-- | src/basic/namespace-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/namespace-util.h b/src/basic/namespace-util.h index a15e262edf..e7cf1a2201 100644 --- a/src/basic/namespace-util.h +++ b/src/basic/namespace-util.h @@ -35,6 +35,7 @@ int fd_is_ns(int fd, unsigned long nsflag); int detach_mount_namespace(void); int detach_mount_namespace_harder(uid_t target_uid, gid_t target_gid); +int detach_mount_namespace_userns(int userns_fd); static inline bool userns_shift_range_valid(uid_t shift, uid_t range) { /* Checks that the specified userns range makes sense, i.e. contains at least one UID, and the end |