integrity: sparse fix: move iint_initialized to integrity.h
[linux-2.6.git] / security / integrity / integrity.h
index 7351836..3143a3c 100644 (file)
 /* iint cache flags */
 #define IMA_MEASURED           0x01
 
+enum evm_ima_xattr_type {
+       IMA_XATTR_DIGEST = 0x01,
+       EVM_XATTR_HMAC,
+       EVM_IMA_XATTR_DIGSIG,
+};
+
+struct evm_ima_xattr_data {
+       u8 type;
+       u8 digest[SHA1_DIGEST_SIZE];
+}  __attribute__((packed));
+
 /* integrity data associated with an inode */
 struct integrity_iint_cache {
        struct rb_node rb_node; /* rooted in integrity_iint_tree */
@@ -26,6 +37,7 @@ struct integrity_iint_cache {
        unsigned char flags;
        u8 digest[SHA1_DIGEST_SIZE];
        struct mutex mutex;     /* protects: version, flags, digest */
+       enum integrity_status evm_status;
 };
 
 /* rbtree tree calls to lookup, insert, delete
@@ -33,3 +45,6 @@ struct integrity_iint_cache {
  */
 struct integrity_iint_cache *integrity_iint_insert(struct inode *inode);
 struct integrity_iint_cache *integrity_iint_find(struct inode *inode);
+
+/* set during initialization */
+extern int iint_initialized;