IMA: don't propagate opened through the entire thing
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 Jun 2018 17:40:10 +0000 (13:40 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 12 Jul 2018 14:04:19 +0000 (10:04 -0400)
commit6035a27b25ab9dadc8c3d5c5df5eae3fca62fc95
tree46b9eb3f1e96efa127e756484a72e508575874b8
parent73a09dd94377e4b186b300bd5461920710c7c3d5
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>
fs/namei.c
fs/nfsd/vfs.c
include/linux/ima.h
security/integrity/ima/ima.h
security/integrity/ima/ima_appraise.c
security/integrity/ima/ima_main.c