aboutsummaryrefslogtreecommitdiffstats
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 dcc3664feee8..6db30a328d98 100644
--- a/include/linux/ima.h
+++ b/include/linux/ima.h
@@ -19,6 +19,7 @@ extern void ima_inode_free(struct inode *inode);
19extern int ima_path_check(struct path *path, int mask); 19extern int ima_path_check(struct path *path, int mask);
20extern void ima_file_free(struct file *file); 20extern void ima_file_free(struct file *file);
21extern int ima_file_mmap(struct file *file, unsigned long prot); 21extern int ima_file_mmap(struct file *file, unsigned long prot);
22extern void ima_shm_check(struct file *file);
22 23
23#else 24#else
24static inline int ima_bprm_check(struct linux_binprm *bprm) 25static inline int ima_bprm_check(struct linux_binprm *bprm)
@@ -50,5 +51,10 @@ static inline int ima_file_mmap(struct file *file, unsigned long prot)
50{ 51{
51 return 0; 52 return 0;
52} 53}
54
55static inline void ima_shm_check(struct file *file)
56{
57 return;
58}
53#endif /* CONFIG_IMA_H */ 59#endif /* CONFIG_IMA_H */
54#endif /* _LINUX_IMA_H */ 60#endif /* _LINUX_IMA_H */