diff options
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r-- | include/linux/capability.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h index c3f9a4d558a0..ecce0f43c73a 100644 --- a/include/linux/capability.h +++ b/include/linux/capability.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #define _LINUX_CAPABILITY_H | 14 | #define _LINUX_CAPABILITY_H |
15 | 15 | ||
16 | #include <uapi/linux/capability.h> | 16 | #include <uapi/linux/capability.h> |
17 | 17 | #include <linux/uidgid.h> | |
18 | 18 | ||
19 | #define _KERNEL_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_3 | 19 | #define _KERNEL_CAPABILITY_VERSION _LINUX_CAPABILITY_VERSION_3 |
20 | #define _KERNEL_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_3 | 20 | #define _KERNEL_CAPABILITY_U32S _LINUX_CAPABILITY_U32S_3 |
@@ -25,11 +25,12 @@ typedef struct kernel_cap_struct { | |||
25 | __u32 cap[_KERNEL_CAPABILITY_U32S]; | 25 | __u32 cap[_KERNEL_CAPABILITY_U32S]; |
26 | } kernel_cap_t; | 26 | } kernel_cap_t; |
27 | 27 | ||
28 | /* exact same as vfs_cap_data but in cpu endian and always filled completely */ | 28 | /* same as vfs_ns_cap_data but in cpu endian and always filled completely */ |
29 | struct cpu_vfs_cap_data { | 29 | struct cpu_vfs_cap_data { |
30 | __u32 magic_etc; | 30 | __u32 magic_etc; |
31 | kernel_cap_t permitted; | 31 | kernel_cap_t permitted; |
32 | kernel_cap_t inheritable; | 32 | kernel_cap_t inheritable; |
33 | kuid_t rootid; | ||
33 | }; | 34 | }; |
34 | 35 | ||
35 | #define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct)) | 36 | #define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct)) |