diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2018-06-08 13:40:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2018-07-12 10:04:19 -0400 |
commit | 6035a27b25ab9dadc8c3d5c5df5eae3fca62fc95 (patch) | |
tree | 46b9eb3f1e96efa127e756484a72e508575874b8 /include/linux/ima.h | |
parent | 73a09dd94377e4b186b300bd5461920710c7c3d5 (diff) |
IMA: don't propagate opened through the entire thing
just check ->f_mode in ima_appraise_measurement()
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/ima.h')
-rw-r--r-- | include/linux/ima.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ima.h b/include/linux/ima.h index 0e4647e0eb60..d9ba3fc363b7 100644 --- a/include/linux/ima.h +++ b/include/linux/ima.h | |||
@@ -16,7 +16,7 @@ struct linux_binprm; | |||
16 | 16 | ||
17 | #ifdef CONFIG_IMA | 17 | #ifdef CONFIG_IMA |
18 | extern int ima_bprm_check(struct linux_binprm *bprm); | 18 | extern int ima_bprm_check(struct linux_binprm *bprm); |
19 | extern int ima_file_check(struct file *file, int mask, int opened); | 19 | extern int ima_file_check(struct file *file, int mask); |
20 | extern void ima_file_free(struct file *file); | 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 prot); |
22 | extern int ima_read_file(struct file *file, enum kernel_read_file_id id); | 22 | extern int ima_read_file(struct file *file, enum kernel_read_file_id id); |
@@ -34,7 +34,7 @@ static inline int ima_bprm_check(struct linux_binprm *bprm) | |||
34 | return 0; | 34 | return 0; |
35 | } | 35 | } |
36 | 36 | ||
37 | static inline int ima_file_check(struct file *file, int mask, int opened) | 37 | static inline int ima_file_check(struct file *file, int mask) |
38 | { | 38 | { |
39 | return 0; | 39 | return 0; |
40 | } | 40 | } |