]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
capabilities: clean up file capability reading
authorSerge E. Hallyn <serue@us.ibm.com>
Sun, 21 Oct 2007 23:41:38 +0000 (16:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 22 Oct 2007 15:13:18 +0000 (08:13 -0700)
commitb68680e4731abbd78863063aaa0dca2a6d8cc723
tree6c546575432b34abb27a54b51f549071d2819282
parentb9049e234401e1fad8459d69a952b174d76c399d
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>
include/linux/capability.h
security/commoncap.c