mirror of https://github.com/torvalds/linux.git
selftests/filesystems: remove CLONE_NEWPIDNS from setup_userns() helper
This is effectively unused and doesn't really server any purpose after having reviewed all of the tests that rely on it. Link: https://patch.msgid.link/20251029-work-namespace-nstree-listns-v4-22-2e6f823ebdc0@kernel.org Tested-by: syzbot@syzkaller.appspotmail.com Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
6fc9baa49d
commit
e2b6e5eadc
|
|
@ -487,7 +487,7 @@ int setup_userns(void)
|
||||||
uid_t uid = getuid();
|
uid_t uid = getuid();
|
||||||
gid_t gid = getgid();
|
gid_t gid = getgid();
|
||||||
|
|
||||||
ret = unshare(CLONE_NEWNS|CLONE_NEWUSER|CLONE_NEWPID);
|
ret = unshare(CLONE_NEWNS|CLONE_NEWUSER);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
ksft_exit_fail_msg("unsharing mountns and userns: %s\n",
|
ksft_exit_fail_msg("unsharing mountns and userns: %s\n",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue