aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/capability.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2008-11-11 05:48:10 -0500
committerJames Morris <jmorris@namei.org>2008-11-11 05:48:10 -0500
commitc0b004413a46a0a5744e6d2b85220fe9d2c33d48 (patch)
treef66ee9e4cf14ce961e42a9dd356927478bab4574 /include/linux/capability.h
parent9d36be76c55ad2c2bb29683b752b0d9ad2e4eeef (diff)
This patch add a generic cpu endian caps structure and externally available
functions which retrieve fcaps information from disk. This information is necessary so fcaps information can be collected and recorded by the audit system. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
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