aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/capability.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r--include/linux/capability.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h
index b5750d0b96e0..d567af247ed8 100644
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@ -99,6 +99,13 @@ typedef struct kernel_cap_struct {
99 __u32 cap[_KERNEL_CAPABILITY_U32S]; 99 __u32 cap[_KERNEL_CAPABILITY_U32S];
100} kernel_cap_t; 100} kernel_cap_t;
101 101
102/* exact same as vfs_cap_data but in cpu endian and always filled completely */
103struct cpu_vfs_cap_data {
104 __u32 magic_etc;
105 kernel_cap_t permitted;
106 kernel_cap_t inheritable;
107};
108
102#define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct)) 109#define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct))
103#define _KERNEL_CAP_T_SIZE (sizeof(kernel_cap_t)) 110#define _KERNEL_CAP_T_SIZE (sizeof(kernel_cap_t))
104 111