Skip to content

Commit fdeb051

Browse files
Richard Kennedyxjamesmorris
authored andcommitted
SELinux: reorder inode_security_struct to increase objs/slab on 64bit
reorder inode_security_struct to remove padding on 64 bit builds size reduced from 72 to 64 bytes increasing objects per slab to 64. Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk> Signed-off-by: James Morris <jmorris@namei.org>
1 parent f526971 commit fdeb051

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎security/selinux/include/objsec.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ struct inode_security_struct {
4343
u32 sid; /* SID of this object */
4444
u16 sclass; /* security class of this object */
4545
unsigned char initialized; /* initialization flag */
46-
struct mutex lock;
4746
unsigned char inherit; /* inherit SID from parent entry */
47+
struct mutex lock;
4848
};
4949

5050
struct file_security_struct {

0 commit comments

Comments
 (0)