|
@@ -75,11 +75,17 @@ static inline void ima_add_kexec_buffer(struct kimage *image)
|
|
|
#endif
|
|
|
|
|
|
#ifdef CONFIG_IMA_APPRAISE
|
|
|
+extern bool is_ima_appraise_enabled(void);
|
|
|
extern void ima_inode_post_setattr(struct dentry *dentry);
|
|
|
extern int ima_inode_setxattr(struct dentry *dentry, const char *xattr_name,
|
|
|
const void *xattr_value, size_t xattr_value_len);
|
|
|
extern int ima_inode_removexattr(struct dentry *dentry, const char *xattr_name);
|
|
|
#else
|
|
|
+static inline bool is_ima_appraise_enabled(void)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static inline void ima_inode_post_setattr(struct dentry *dentry)
|
|
|
{
|
|
|
return;
|