summaryrefslogtreecommitdiffstats
path: root/src/basic/namespace-util.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2025-01-11 15:42:15 +0100
committerMike Yuan <me@yhndnzj.com>2025-01-11 15:53:14 +0100
commitc7704ecd0425a7ba5230275bdd4f06f1713c5cf8 (patch)
tree4ba3adf00949d5072f961eee3fef34b140fcb702 /src/basic/namespace-util.h
parentREADME: document kernel version for idmapped mounts (diff)
downloadsystemd-c7704ecd0425a7ba5230275bdd4f06f1713c5cf8.tar.xz
systemd-c7704ecd0425a7ba5230275bdd4f06f1713c5cf8.zip
namespace-util: group userns functions together
Diffstat (limited to '')
-rw-r--r--src/basic/namespace-util.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/basic/namespace-util.h b/src/basic/namespace-util.h
index d1ac4f6ed4..58347cbf88 100644
--- a/src/basic/namespace-util.h
+++ b/src/basic/namespace-util.h
@@ -83,15 +83,15 @@ static inline bool userns_shift_range_valid(uid_t shift, uid_t range) {
return true;
}
+int parse_userns_uid_range(const char *s, uid_t *ret_uid_shift, uid_t *ret_uid_range);
+
int userns_acquire_empty(void);
int userns_acquire(const char *uid_map, const char *gid_map);
-int netns_acquire(void);
+int userns_get_base_uid(int userns_fd, uid_t *ret_uid, gid_t *ret_gid);
-int parse_userns_uid_range(const char *s, uid_t *ret_uid_shift, uid_t *ret_uid_range);
+int process_is_owned_by_uid(const PidRef *pidref, uid_t uid);
int is_idmapping_supported(const char *path);
-int userns_get_base_uid(int userns_fd, uid_t *ret_uid, gid_t *ret_gid);
-
-int process_is_owned_by_uid(const PidRef *pidref, uid_t uid);
+int netns_acquire(void);