namespace-util: correct assertion in namespace_is_init()

Follow-up for 18ead2b03d
This commit is contained in:
Mike Yuan
2025-01-04 17:07:59 +01:00
parent 07610cafcf
commit 2f7cd6c70a
3 changed files with 25 additions and 24 deletions
+2 -2
View File
@@ -49,6 +49,8 @@ int namespace_enter(int pidns_fd, int mntns_fd, int netns_fd, int userns_fd, int
int fd_is_namespace(int fd, NamespaceType type);
int is_our_namespace(int fd, NamespaceType type);
int namespace_is_init(NamespaceType type);
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);
@@ -79,6 +81,4 @@ int parse_userns_uid_range(const char *s, uid_t *ret_uid_shift, uid_t *ret_uid_r
int namespace_open_by_type(NamespaceType type);
int namespace_is_init(NamespaceType type);
int is_idmapping_supported(const char *path);