Skip to content

Commit

Permalink
IMA: convert internal flags from long to char
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Paris authored and Linus Torvalds committed Oct 26, 2010
1 parent 497f323 commit 15aac67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/integrity/ima/ima.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 15aac67

Please sign in to comment.