mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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 <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
This commit is contained in:
parent
1a48e2ac03
commit
7a4e7408c5
2 changed files with 176 additions and 2 deletions
|
|
@ -93,10 +93,8 @@
|
|||
int overflowuid = DEFAULT_OVERFLOWUID;
|
||||
int overflowgid = DEFAULT_OVERFLOWGID;
|
||||
|
||||
#ifdef CONFIG_UID16
|
||||
EXPORT_SYMBOL(overflowuid);
|
||||
EXPORT_SYMBOL(overflowgid);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* the same as above, but for filesystems which can only store a 16-bit
|
||||
|
|
|
|||
Loading…
Reference in a new issue