namespace-util: port namespace_get_leader() to PidRef

This commit is contained in:
Lennart Poettering
2025-01-10 14:22:49 +01:00
parent 47e45ea738
commit 0b8b13324e
4 changed files with 94 additions and 23 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ static inline int in_same_namespace(pid_t pid1, pid_t pid2, NamespaceType type)
type);
}
int namespace_get_leader(pid_t pid, NamespaceType type, pid_t *ret);
int namespace_get_leader(PidRef *pidref, NamespaceType type, PidRef *ret);
int detach_mount_namespace(void);
int detach_mount_namespace_harder(uid_t target_uid, gid_t target_gid);