summaryrefslogtreecommitdiffstats
path: root/security/yama
diff options
context:
space:
mode:
authorDmitry Kasatkin <d.kasatkin@samsung.com>2014-06-13 17:55:47 +0200
committerMimi Zohar <zohar@linux.vnet.ibm.com>2014-07-17 15:35:09 +0200
commit2c50b964823ebb7f0a098878c399ce859cd38e9e (patch)
tree19c98e19c5059c5c9fbf8d33960df729354395b3 /security/yama
parentMerge branch 'stable-3.16' of git://git.infradead.org/users/pcmoore/selinux i... (diff)
downloadlinux-2c50b964823ebb7f0a098878c399ce859cd38e9e.tar.xz
linux-2c50b964823ebb7f0a098878c399ce859cd38e9e.zip
ima: remove unnecessary i_mutex locking from ima_rdwr_violation_check()
Before 2.6.39 inode->i_readcount was maintained by IMA. It was not atomic and protected using spinlock. For 2.6.39, i_readcount was converted to atomic and maintaining was moved VFS layer. Spinlock for some unclear reason was replaced by i_mutex. After analyzing the code, we came to conclusion that i_mutex locking is unnecessary, especially when an IMA policy has not been defined. This patch removes i_mutex locking from ima_rdwr_violation_check(). Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/yama')
0 files changed, 0 insertions, 0 deletions