summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2008-11-11 21:48:10 +1100
committerJames Morris <jmorris@namei.org>2008-11-11 21:48:10 +1100
commitc0b004413a46a0a5744e6d2b85220fe9d2c33d48 (patch)
treef66ee9e4cf14ce961e42a9dd356927478bab4574 /include
parent9d36be76c55ad2c2bb29683b752b0d9ad2e4eeef (diff)
downloadop-kernel-dev-c0b004413a46a0a5744e6d2b85220fe9d2c33d48.zip
op-kernel-dev-c0b004413a46a0a5744e6d2b85220fe9d2c33d48.tar.gz
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')
-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 b5750d0..d567af2 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))
OpenPOWER on IntegriCloud