Skip to content
Snippets Groups Projects
Commit 37ec43cd authored by Mimi Zohar's avatar Mimi Zohar
Browse files

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: default avatarSven Vermeulen <sven.vermeulen@siphos.be>
Signed-off-by: default avatarMimi Zohar <zohar@us.ibm.com>
Acked-by: default avatarHugh Dickins <hughd@google.com>
parent 8912176c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment