summaryrefslogtreecommitdiffstats
path: root/src/basic/namespace-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-03-14 22:36:35 +0100
committerLennart Poettering <lennart@poettering.net>2024-04-06 16:08:23 +0200
commit2ad2f0c89e19d3c5af1ef002ade44910b8297006 (patch)
treeda2a8978ea30aca7da72410435d9deda194e17f5 /src/basic/namespace-util.h
parentnamespace-util: add helper for allocating an empty userns fd (diff)
downloadsystemd-2ad2f0c89e19d3c5af1ef002ade44910b8297006.tar.xz
systemd-2ad2f0c89e19d3c5af1ef002ade44910b8297006.zip
namespace-util: add detach_mount_namespace_userns()
Diffstat (limited to '')
-rw-r--r--src/basic/namespace-util.h1
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