From: Mimi Zohar Date: Sun, 14 Apr 2013 13:21:47 +0000 (-0400) Subject: evm: calculate HMAC after initializing posix acl on tmpfs X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~21^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37ec43cdc4c776bd39aae469fdfa494bdf0344c7;p=pandora-kernel.git evm: calculate HMAC after initializing posix acl on tmpfs Included in the EVM hmac calculation is the i_mode. Any changes to the i_mode need to be reflected in the hmac. shmem_mknod() currently calls generic_acl_init(), which modifies the i_mode, after calling security_inode_init_security(). This patch reverses the order in which they are called. Reported-by: Sven Vermeulen Signed-off-by: Mimi Zohar Acked-by: Hugh Dickins --- Reading git-diff-tree failed