| .. | .. |
|---|
| 18 | 18 | extern int ima_file_check(struct file *file, int mask); |
|---|
| 19 | 19 | extern void ima_post_create_tmpfile(struct inode *inode); |
|---|
| 20 | 20 | 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); |
|---|
| 22 | 23 | extern int ima_file_mprotect(struct vm_area_struct *vma, unsigned long prot); |
|---|
| 23 | 24 | extern int ima_load_data(enum kernel_load_data_id id, bool contents); |
|---|
| 24 | 25 | extern int ima_post_load_data(char *buf, loff_t size, |
|---|
| .. | .. |
|---|
| 70 | 71 | return; |
|---|
| 71 | 72 | } |
|---|
| 72 | 73 | |
|---|
| 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) |
|---|
| 74 | 76 | { |
|---|
| 75 | 77 | return 0; |
|---|
| 76 | 78 | } |
|---|