diff options
author | Ingo Molnar <mingo@kernel.org> | 2014-02-02 03:43:20 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-02-02 03:43:20 -0500 |
commit | 65370bdf881e20907e7a53abab9b8c0bc5f60a6b (patch) | |
tree | 0d32a494e873b7b92dbfab0e67ffeef597ee8108 /include/linux/uidgid.h | |
parent | e207552e64ea053a33e856828ad7915484911d06 (diff) | |
parent | 5cb480f6b488128140c940abff3c36f524a334a8 (diff) |
Merge branch 'linus' into core/locking
Refresh the topic.
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/uidgid.h')
-rw-r--r-- | include/linux/uidgid.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/linux/uidgid.h b/include/linux/uidgid.h index 8e522cbcef29..2d1f9b627f91 100644 --- a/include/linux/uidgid.h +++ b/include/linux/uidgid.h | |||
@@ -17,8 +17,6 @@ | |||
17 | struct user_namespace; | 17 | struct user_namespace; |
18 | extern struct user_namespace init_user_ns; | 18 | extern struct user_namespace init_user_ns; |
19 | 19 | ||
20 | #ifdef CONFIG_UIDGID_STRICT_TYPE_CHECKS | ||
21 | |||
22 | typedef struct { | 20 | typedef struct { |
23 | uid_t val; | 21 | uid_t val; |
24 | } kuid_t; | 22 | } kuid_t; |
@@ -41,26 +39,6 @@ static inline gid_t __kgid_val(kgid_t gid) | |||
41 | return gid.val; | 39 | return gid.val; |
42 | } | 40 | } |
43 | 41 | ||
44 | #else | ||
45 | |||
46 | typedef uid_t kuid_t; | ||
47 | typedef gid_t kgid_t; | ||
48 | |||
49 | static inline uid_t __kuid_val(kuid_t uid) | ||
50 | { | ||
51 | return uid; | ||
52 | } | ||
53 | |||
54 | static inline gid_t __kgid_val(kgid_t gid) | ||
55 | { | ||
56 | return gid; | ||
57 | } | ||
58 | |||
59 | #define KUIDT_INIT(value) ((kuid_t) value ) | ||
60 | #define KGIDT_INIT(value) ((kgid_t) value ) | ||
61 | |||
62 | #endif | ||
63 | |||
64 | #define GLOBAL_ROOT_UID KUIDT_INIT(0) | 42 | #define GLOBAL_ROOT_UID KUIDT_INIT(0) |
65 | #define GLOBAL_ROOT_GID KGIDT_INIT(0) | 43 | #define GLOBAL_ROOT_GID KGIDT_INIT(0) |
66 | 44 | ||