mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
userns: userns: Remove UIDGID_STRICT_TYPE_CHECKS
Removing UIDGID_STRICT_TYPE_CHECKS simplifies the code and always generates a compile error if the uids and kuids or gids and kgids are mixed by accident. Now that the appropriate conversions have been placed throughout the kernel there is no longer a need for a mode where we don't detect them as compile errors. Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
41301ae78a
commit
261000a56b
4 changed files with 0 additions and 51 deletions
|
@ -18,8 +18,6 @@ extern struct user_namespace init_user_ns;
|
|||
|
||||
typedef __kernel_uid32_t projid_t;
|
||||
|
||||
#ifdef CONFIG_UIDGID_STRICT_TYPE_CHECKS
|
||||
|
||||
typedef struct {
|
||||
projid_t val;
|
||||
} kprojid_t;
|
||||
|
@ -31,19 +29,6 @@ static inline projid_t __kprojid_val(kprojid_t projid)
|
|||
|
||||
#define KPROJIDT_INIT(value) (kprojid_t){ value }
|
||||
|
||||
#else
|
||||
|
||||
typedef projid_t kprojid_t;
|
||||
|
||||
static inline projid_t __kprojid_val(kprojid_t projid)
|
||||
{
|
||||
return projid;
|
||||
}
|
||||
|
||||
#define KPROJIDT_INIT(value) ((kprojid_t) value )
|
||||
|
||||
#endif
|
||||
|
||||
#define INVALID_PROJID KPROJIDT_INIT(-1)
|
||||
#define OVERFLOW_PROJID 65534
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue