diff options
author | Eric Paris <eparis@redhat.com> | 2010-10-25 14:41:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 11:37:18 -0700 |
commit | 15aac676778f206b42c4d7782b08f89246680485 (patch) | |
tree | d4d2625139f8a52ffa7bd0cb1848a446518652ec /security | |
parent | 497f32337073a2da102c49a53779097b5394711b (diff) | |
download | kernel_samsung_tuna-15aac676778f206b42c4d7782b08f89246680485.zip kernel_samsung_tuna-15aac676778f206b42c4d7782b08f89246680485.tar.gz kernel_samsung_tuna-15aac676778f206b42c4d7782b08f89246680485.tar.bz2 |
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')
-rw-r--r-- | security/integrity/ima/ima.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h index 000d13a..f7af011 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) } /* iint cache flags */ -#define IMA_MEASURED 1 +#define IMA_MEASURED 0x01 /* integrity data associated with an inode */ struct ima_iint_cache { struct rb_node rb_node; /* rooted in ima_iint_tree */ struct inode *inode; /* back pointer to inode in question */ u64 version; /* track inode changes */ - unsigned long flags; + unsigned char flags; u8 digest[IMA_DIGEST_SIZE]; struct mutex mutex; /* protects: version, flags, digest */ unsigned int readcount; /* measured files readcount */ |