diff options
author | Eric Paris <eparis@redhat.com> | 2008-11-11 21:48:10 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-11-11 21:48:10 +1100 |
commit | c0b004413a46a0a5744e6d2b85220fe9d2c33d48 (patch) | |
tree | f66ee9e4cf14ce961e42a9dd356927478bab4574 /include/linux/capability.h | |
parent | 9d36be76c55ad2c2bb29683b752b0d9ad2e4eeef (diff) | |
download | linux-stable-c0b004413a46a0a5744e6d2b85220fe9d2c33d48.tar.gz linux-stable-c0b004413a46a0a5744e6d2b85220fe9d2c33d48.tar.bz2 linux-stable-c0b004413a46a0a5744e6d2b85220fe9d2c33d48.zip |
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.h | 7 |
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 { __u32 cap[_KERNEL_CAPABILITY_U32S]; } kernel_cap_t; +/* exact same as vfs_cap_data but in cpu endian and always filled completely */ +struct cpu_vfs_cap_data { + __u32 magic_etc; + kernel_cap_t permitted; + kernel_cap_t inheritable; +}; + #define _USER_CAP_HEADER_SIZE (sizeof(struct __user_cap_header_struct)) #define _KERNEL_CAP_T_SIZE (sizeof(kernel_cap_t)) |