Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15aac676 authored by Eric Paris's avatar Eric Paris Committed by Linus Torvalds
Browse files

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: default avatarEric Paris <eparis@redhat.com>
Acked-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 497f3233
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */