Commit 04f505f6 authored by Andrei Vagin's avatar Andrei Vagin Committed by Andrei Vagin

check: don't close file descriptors in check_user_ns

Do someone remember why we are doing this?
Reviewed-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 9c40efdd
......@@ -857,7 +857,6 @@ static int check_user_ns(int pid)
struct __user_cap_header_struct hdr;
uid_t uid;
gid_t gid;
int i;
uid = host_uid(0);
gid = host_gid(0);
......@@ -900,10 +899,6 @@ static int check_user_ns(int pid)
return -1;
}
close_old_fds();
for (i = SERVICE_FD_MIN + 1; i < SERVICE_FD_MAX; i++)
close_service_fd(i);
/*
* Check that we are able to enter into other namespaces
* from the target userns namespace. This signs that these
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment