summaryrefslogtreecommitdiffstats
path: root/include/linux/ima.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ima.h')
-rw-r--r--include/linux/ima.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ima.h b/include/linux/ima.h
index 7f6952f8d6aa..0e4647e0eb60 100644
--- a/include/linux/ima.h
+++ b/include/linux/ima.h
@@ -75,11 +75,17 @@ static inline void ima_add_kexec_buffer(struct kimage *image)
75#endif 75#endif
76 76
77#ifdef CONFIG_IMA_APPRAISE 77#ifdef CONFIG_IMA_APPRAISE
78extern bool is_ima_appraise_enabled(void);
78extern void ima_inode_post_setattr(struct dentry *dentry); 79extern void ima_inode_post_setattr(struct dentry *dentry);
79extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name, 80extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name,
80 const void *xattr_value, size_t xattr_value_len); 81 const void *xattr_value, size_t xattr_value_len);
81extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name); 82extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name);
82#else 83#else
84static inline bool is_ima_appraise_enabled(void)
85{
86 return 0;
87}
88
83static inline void ima_inode_post_setattr(struct dentry *dentry) 89static inline void ima_inode_post_setattr(struct dentry *dentry)
84{ 90{
85 return; 91 return;