process-util: teach namespace_fork() to optionally use namespace_enter_delegated()

This commit is contained in:
Mike Yuan
2026-02-10 21:54:12 +01:00
parent 1a1c5ab758
commit 8f89ed439d
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -201,6 +201,7 @@ int namespace_fork_full(
int netns_fd,
int userns_fd,
int root_fd,
bool delegated,
PidRef *ret);
static inline int namespace_fork(
@@ -215,7 +216,7 @@ static inline int namespace_fork(
PidRef *ret) {
return namespace_fork_full(outer_name, inner_name, NULL, 0, flags,
pidns_fd, mntns_fd, netns_fd, userns_fd, root_fd,
pidns_fd, mntns_fd, netns_fd, userns_fd, root_fd, false,
ret);
}