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 /fs/nfsd/vfs.c | |
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 'fs/nfsd/vfs.c')
-rw-r--r-- | fs/nfsd/vfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index b0555d7d8200..55a099e47ba2 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c | |||
@@ -763,7 +763,7 @@ nfsd_open(struct svc_rqst *rqstp, struct svc_fh *fhp, umode_t type, | |||
763 | goto out_nfserr; | 763 | goto out_nfserr; |
764 | } | 764 | } |
765 | 765 | ||
766 | host_err = ima_file_check(file, may_flags, 0); | 766 | host_err = ima_file_check(file, may_flags); |
767 | if (host_err) { | 767 | if (host_err) { |
768 | fput(file); | 768 | fput(file); |
769 | goto out_nfserr; | 769 | goto out_nfserr; |