diff --git a/kernel/cgroup.c b/kernel/cgroup.c index aee5f0f38edc..7a088e80e53f 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2137,7 +2137,7 @@ retry_find_task: if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && !uid_eq(cred->euid, tcred->uid) && !uid_eq(cred->euid, tcred->suid) && - !ns_capable(tcred->user_ns, CAP_SYS_NICE)) { + !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE)) { rcu_read_unlock(); ret = -EACCES; goto out_unlock_cgroup;