diff options
Diffstat (limited to 'kernel/cgroup/cgroup-v1.c')
-rw-r--r-- | kernel/cgroup/cgroup-v1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/cgroup/cgroup-v1.c b/kernel/cgroup/cgroup-v1.c index 191c329e482a..5746351aea28 100644 --- a/kernel/cgroup/cgroup-v1.c +++ b/kernel/cgroup/cgroup-v1.c | |||
@@ -510,7 +510,8 @@ static ssize_t __cgroup1_procs_write(struct kernfs_open_file *of, | |||
510 | tcred = get_task_cred(task); | 510 | tcred = get_task_cred(task); |
511 | if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && | 511 | if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && |
512 | !uid_eq(cred->euid, tcred->uid) && | 512 | !uid_eq(cred->euid, tcred->uid) && |
513 | !uid_eq(cred->euid, tcred->suid)) | 513 | !uid_eq(cred->euid, tcred->suid) && |
514 | !ns_capable(tcred->user_ns, CAP_SYS_NICE)) | ||
514 | ret = -EACCES; | 515 | ret = -EACCES; |
515 | put_cred(tcred); | 516 | put_cred(tcred); |
516 | if (ret) | 517 | if (ret) |