hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/ima.h
....@@ -18,7 +18,8 @@
1818 extern int ima_file_check(struct file *file, int mask);
1919 extern void ima_post_create_tmpfile(struct inode *inode);
2020 extern void ima_file_free(struct file *file);
21
-extern int ima_file_mmap(struct file *file, unsigned long prot);
21
+extern int ima_file_mmap(struct file *file, unsigned long reqprot,
22
+ unsigned long prot, unsigned long flags);
2223 extern int ima_file_mprotect(struct vm_area_struct *vma, unsigned long prot);
2324 extern int ima_load_data(enum kernel_load_data_id id, bool contents);
2425 extern int ima_post_load_data(char *buf, loff_t size,
....@@ -70,7 +71,8 @@
7071 return;
7172 }
7273
73
-static inline int ima_file_mmap(struct file *file, unsigned long prot)
74
+static inline int ima_file_mmap(struct file *file, unsigned long reqprot,
75
+ unsigned long prot, unsigned long flags)
7476 {
7577 return 0;
7678 }