From: Dmitry Kasatkin Date: Thu, 20 Nov 2014 14:31:01 +0000 (+0200) Subject: evm: fix potential race when removing xattrs X-Git-Tag: omap-for-v4.2/fixes-rc1^2~81^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c51bb00c40e5608fb2cdac5230f51aeb56a28df;p=pandora-kernel.git evm: fix potential race when removing xattrs EVM needs to be atomically updated when removing xattrs. Otherwise concurrent EVM verification may fail in between. This patch fixes by moving i_mutex unlocking after calling EVM hook. fsnotify_xattr() is also now called while locked the same way as it is done in __vfs_setxattr_noperm. Changelog: - remove unused 'inode' variable. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed