userns: Convert sched_set_affinity and sched_set_scheduler's permission checks
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Feb 2012 02:54:02 +0000 (18:54 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 3 May 2012 10:28:39 +0000 (03:28 -0700)
commit9c806aa06f8e121c6058db8e8073798aa5c4355b
treed55fb9702aa80c4fb38f0da504b18a720e91f9bb
parent76b6db010297d4928ab7b7e7c78dd982f413f0a4
userns: Convert sched_set_affinity and sched_set_scheduler's permission checks

- Compare kuids with uid_eq
- kuid are uniuqe across all user namespaces so there is no longer the
  need for a user_namespace comparison.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
kernel/sched/core.c