mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
revert "capabilities: clean up file capability reading"
Revertb68680e473
to make way for the next patch: "Add 64-bit capability support to the kernel". We want to keep the vfs_cap_data.data[] structure, using two 'data's for 64-bit caps (and later three for 96-bit caps), whereasb68680e473
had gotten rid of the 'data' struct made its members inline. The 64-bit caps patch keeps the stack abuse fix at get_file_caps(), which was the more important part of that patch. [akpm@linux-foundation.org: coding-style fixes] Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: Serge Hallyn <serue@us.ibm.com> Cc: Chris Wright <chrisw@sous-sol.org> Cc: James Morris <jmorris@namei.org> Cc: Casey Schaufler <casey@schaufler-ca.com> Cc: Andrew Morgan <morgan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4bea58053f
commit
8f6936f4d2
2 changed files with 12 additions and 17 deletions
|
@ -56,8 +56,10 @@ typedef struct __user_cap_data_struct {
|
|||
|
||||
struct vfs_cap_data {
|
||||
__u32 magic_etc; /* Little endian */
|
||||
__u32 permitted; /* Little endian */
|
||||
__u32 inheritable; /* Little endian */
|
||||
struct {
|
||||
__u32 permitted; /* Little endian */
|
||||
__u32 inheritable; /* Little endian */
|
||||
} data[1];
|
||||
};
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue