userns: Add kuid_t and kgid_t and associated infrastructure in uidgid.h
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 14 Nov 2011 22:29:51 +0000 (14:29 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Sun, 8 Apr 2012 00:09:52 +0000 (17:09 -0700)
commit7a4e7408c5cadb240e068a662251754a562355e3
tree349f10e0aa1d590ece86deabf4f3025035b2fbde
parent1a48e2ac034d47ed843081c4523b63c46b46888b
userns: Add kuid_t and kgid_t and associated infrastructure in uidgid.h

Start distinguishing between internal kernel uids and gids and
values that userspace can use.  This is done by introducing two
new types: kuid_t and kgid_t.  These types and their associated
functions are infrastructure are declared in the new header
uidgid.h.

Ultimately there will be a different implementation of the mapping
functions for use with user namespaces.  But to keep it simple
we introduce the mapping functions first to separate the meat
from the mechanical code conversions.

Export overflowuid and overflowgid so we can use from_kuid_munged
and from_kgid_munged in modular code.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/uidgid.h [new file with mode: 0644]
kernel/sys.c