|
@@ -821,10 +821,6 @@ static bool new_idmap_permitted(const struct file *file,
|
|
|
kuid_t uid = make_kuid(ns->parent, id);
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|