Message ID | 20190211165323.9369-2-iforster@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix overlayfs on EVM | expand |
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c index 43e2dc3a60d0..baddbbce6ac7 100644 --- a/security/integrity/evm/evm_crypto.c +++ b/security/integrity/evm/evm_crypto.c @@ -241,6 +241,9 @@ static int evm_calc_hmac_or_hash(struct dentry *dentry, if (is_ima) ima_present = true; } + + /* Use the real i_ino to calculate the HMAC */ + inode = d_real_inode(dentry); hmac_add_misc(desc, inode, type, data->digest); /* Portable EVM signatures must include an IMA hash */