aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima.h
diff options
context:
space:
mode:
Diffstat (limited to 'security/integrity/ima/ima.h')
-rw-r--r--security/integrity/ima/ima.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
index 991844db98d9..ab68bed8ac36 100644
--- a/security/integrity/ima/ima.h
+++ b/security/integrity/ima/ima.h
@@ -142,13 +142,16 @@ void ima_delete_rules(void);
142#define IMA_APPRAISE_FIX 0x02 142#define IMA_APPRAISE_FIX 0x02
143 143
144#ifdef CONFIG_IMA_APPRAISE 144#ifdef CONFIG_IMA_APPRAISE
145int ima_appraise_measurement(struct integrity_iint_cache *iint, 145int ima_appraise_measurement(int func, struct integrity_iint_cache *iint,
146 struct file *file, const unsigned char *filename); 146 struct file *file, const unsigned char *filename);
147int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func); 147int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func);
148void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file); 148void ima_update_xattr(struct integrity_iint_cache *iint, struct file *file);
149enum integrity_status ima_get_cache_status(struct integrity_iint_cache *iint,
150 int func);
149 151
150#else 152#else
151static inline int ima_appraise_measurement(struct integrity_iint_cache *iint, 153static inline int ima_appraise_measurement(int func,
154 struct integrity_iint_cache *iint,
152 struct file *file, 155 struct file *file,
153 const unsigned char *filename) 156 const unsigned char *filename)
154{ 157{
@@ -165,6 +168,12 @@ static inline void ima_update_xattr(struct integrity_iint_cache *iint,
165 struct file *file) 168 struct file *file)
166{ 169{
167} 170}
171
172static inline enum integrity_status ima_get_cache_status(struct integrity_iint_cache
173 *iint, int func)
174{
175 return INTEGRITY_UNKNOWN;
176}
168#endif 177#endif
169 178
170/* LSM based policy rules require audit */ 179/* LSM based policy rules require audit */