diff options
-rw-r--r-- | kernel/user_namespace.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 27c8dab48c07..1ce6d67c07b7 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c | |||
@@ -821,10 +821,6 @@ static bool new_idmap_permitted(const struct file *file, | |||
821 | kuid_t uid = make_kuid(ns->parent, id); | 821 | kuid_t uid = make_kuid(ns->parent, id); |
822 | if (uid_eq(uid, file->f_cred->fsuid)) | 822 | if (uid_eq(uid, file->f_cred->fsuid)) |
823 | return true; | 823 | return true; |
824 | } else if (cap_setid == CAP_SETGID) { | ||
825 | kgid_t gid = make_kgid(ns->parent, id); | ||
826 | if (gid_eq(gid, file->f_cred->fsgid)) | ||
827 | return true; | ||
828 | } | 824 | } |
829 | } | 825 | } |
830 | 826 | ||