diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/user_namespace.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 36b432b0cb7b..8ec7cc50866d 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -814,11 +814,6 @@ static bool new_idmap_permitted(const struct file *file, if (uid_eq(uid, file->f_cred->fsuid)) return true; } - else if (cap_setid == CAP_SETGID) { - kgid_t gid = make_kgid(ns->parent, id); - if (gid_eq(gid, file->f_cred->fsgid)) - return true; - } } /* Allow anyone to set a mapping that doesn't require privilege */ |