CRED: Wrap task credential accesses in the filesystem subsystem
[deliverable/linux.git] / fs / ioprio.c
index da3cc460d4df4d16f3afb81fea786589948a2c18..68d2cd807118b003f3ae0fd4052b556613aa2594 100644 (file)
@@ -32,8 +32,8 @@ static int set_task_ioprio(struct task_struct *task, int ioprio)
        int err;
        struct io_context *ioc;
 
-       if (task->uid != current->euid &&
-           task->uid != current->uid && !capable(CAP_SYS_NICE))
+       if (task->uid != current_euid() &&
+           task->uid != current_uid() && !capable(CAP_SYS_NICE))
                return -EPERM;
 
        err = security_task_setioprio(task, ioprio);
This page took 0.0735 seconds and 5 git commands to generate.