From 7c51bb00c40e5608fb2cdac5230f51aeb56a28df Mon Sep 17 00:00:00 2001 From: Dmitry Kasatkin Date: Thu, 20 Nov 2014 16:31:01 +0200 Subject: [PATCH] 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-format-patch failed