userns: Convert capabilities related permsion checks
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 8 Feb 2012 00:45:47 +0000 (16:45 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 3 May 2012 10:28:40 +0000 (03:28 -0700)
commit18815a18085364d8514c0d0c4c986776cb74272c
treea931fb2eee31aee6f8d83ef4493071b9827b1b9f
parent9c806aa06f8e121c6058db8e8073798aa5c4355b
userns: Convert capabilities related permsion checks

- Use uid_eq when comparing kuids
  Use gid_eq when comparing kgids
- Use make_kuid(user_ns, 0) to talk about the user_namespace root uid

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
fs/open.c
security/commoncap.c