|
@@ -1334,8 +1334,8 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
|
|
|
* userid as the target process.
|
|
|
*/
|
|
|
tcred = __task_cred(task);
|
|
|
- if (cred->euid != tcred->suid && cred->euid != tcred->uid &&
|
|
|
- cred->uid != tcred->suid && cred->uid != tcred->uid &&
|
|
|
+ if (!uid_eq(cred->euid, tcred->suid) && !uid_eq(cred->euid, tcred->uid) &&
|
|
|
+ !uid_eq(cred->uid, tcred->suid) && !uid_eq(cred->uid, tcred->uid) &&
|
|
|
!capable(CAP_SYS_NICE)) {
|
|
|
rcu_read_unlock();
|
|
|
err = -EPERM;
|