summaryrefslogtreecommitdiffstats
path: root/include/linux/capability.h
diff options
context:
space:
mode:
authorSerge E. Hallyn2007-10-22 01:41:38 +0200
committerLinus Torvalds2007-10-22 17:13:18 +0200
commitb68680e4731abbd78863063aaa0dca2a6d8cc723 (patch)
tree6c546575432b34abb27a54b51f549071d2819282 /include/linux/capability.h
parentmemory hotplug: make kmem_cache_node for SLUB on memory online avoid panic (diff)
downloadkernel-qcow2-linux-b68680e4731abbd78863063aaa0dca2a6d8cc723.tar.gz
kernel-qcow2-linux-b68680e4731abbd78863063aaa0dca2a6d8cc723.tar.xz
kernel-qcow2-linux-b68680e4731abbd78863063aaa0dca2a6d8cc723.zip
capabilities: clean up file capability reading
Simplify the vfs_cap_data structure. Also fix get_file_caps which was declaring __le32 v1caps[XATTR_CAPS_SZ] on the stack, but XATTR_CAPS_SZ is already * sizeof(__le32). [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Serge E. Hallyn <serue@us.ibm.com> Cc: Andrew Morgan <morgan@kernel.org> Cc: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/capability.h')
-rw-r--r--include/linux/capability.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/capability.h b/include/linux/capability.h
index 7a8d7ade28a0..bb017edffd56 100644
--- a/include/linux/capability.h
+++ b/include/linux/capability.h
@@ -56,10 +56,8 @@ typedef struct __user_cap_data_struct {
struct vfs_cap_data {
__u32 magic_etc; /* Little endian */
- struct {
- __u32 permitted; /* Little endian */
- __u32 inheritable; /* Little endian */
- } data[1];
+ __u32 permitted; /* Little endian */
+ __u32 inheritable; /* Little endian */
};
#ifdef __KERNEL__