diff options
author | Dmitry Kasatkin <dmitry.kasatkin@intel.com> | 2012-09-21 10:00:43 -0400 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2013-01-16 17:50:01 -0500 |
commit | ee866331749b07373743ce18ceaffb1dd841d855 (patch) | |
tree | c99c1f5218e5a1f9fcf756142922a2a996870c57 /security | |
parent | 16cac49f727621c6b0467ffe15ed72c2febb1296 (diff) |
integrity: reduce storage size for ima_status and evm_status
This patch reduces size of the iint structure by 8 bytes.
It saves about 15% of iint cache memory.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/integrity/integrity.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index e9db763a875e..0a298def5036 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
@@ -50,8 +50,8 @@ struct integrity_iint_cache { | |||
50 | u64 version; /* track inode changes */ | 50 | u64 version; /* track inode changes */ |
51 | unsigned short flags; | 51 | unsigned short flags; |
52 | struct evm_ima_xattr_data ima_xattr; | 52 | struct evm_ima_xattr_data ima_xattr; |
53 | enum integrity_status ima_status; | 53 | enum integrity_status ima_status:4; |
54 | enum integrity_status evm_status; | 54 | enum integrity_status evm_status:4; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | /* rbtree tree calls to lookup, insert, delete | 57 | /* rbtree tree calls to lookup, insert, delete |