aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-10-25 14:41:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-10-26 14:37:18 -0400
commit15aac676778f206b42c4d7782b08f89246680485 (patch)
treed4d2625139f8a52ffa7bd0cb1848a446518652ec /security/integrity
parent497f32337073a2da102c49a53779097b5394711b (diff)
IMA: convert internal flags from long to char
The IMA flags is an unsigned long but there is only 1 flag defined. Lets save a little space and make it a char. This packs nicely next to the array of u8's. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/integrity')
-rw-r--r--security/integrity/ima/ima.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
index 000d13ab1a2d..f7af0110bcde 100644
--- a/security/integrity/ima/ima.h
+++ b/security/integrity/ima/ima.h
@@ -96,14 +96,14 @@ static inline unsigned long ima_hash_key(u8 *digest)
96} 96}
97 97
98/* iint cache flags */ 98/* iint cache flags */
99#define IMA_MEASURED 1 99#define IMA_MEASURED 0x01
100 100
101/* integrity data associated with an inode */ 101/* integrity data associated with an inode */
102struct ima_iint_cache { 102struct ima_iint_cache {
103 struct rb_node rb_node; /* rooted in ima_iint_tree */ 103 struct rb_node rb_node; /* rooted in ima_iint_tree */
104 struct inode *inode; /* back pointer to inode in question */ 104 struct inode *inode; /* back pointer to inode in question */
105 u64 version; /* track inode changes */ 105 u64 version; /* track inode changes */
106 unsigned long flags; 106 unsigned char flags;
107 u8 digest[IMA_DIGEST_SIZE]; 107 u8 digest[IMA_DIGEST_SIZE];
108 struct mutex mutex; /* protects: version, flags, digest */ 108 struct mutex mutex; /* protects: version, flags, digest */
109 unsigned int readcount; /* measured files readcount */ 109 unsigned int readcount; /* measured files readcount */