diff options
Diffstat (limited to 'security/integrity/evm/evm_main.c')
| -rw-r--r-- | security/integrity/evm/evm_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c index af9b6852f4e1..336b3ddfe63f 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c | |||
| @@ -123,7 +123,7 @@ static enum integrity_status evm_verify_hmac(struct dentry *dentry, | |||
| 123 | goto out; | 123 | goto out; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | xattr_len = rc - 1; | 126 | xattr_len = rc; |
| 127 | 127 | ||
| 128 | /* check value type */ | 128 | /* check value type */ |
| 129 | switch (xattr_data->type) { | 129 | switch (xattr_data->type) { |
| @@ -143,7 +143,7 @@ static enum integrity_status evm_verify_hmac(struct dentry *dentry, | |||
| 143 | if (rc) | 143 | if (rc) |
| 144 | break; | 144 | break; |
| 145 | rc = integrity_digsig_verify(INTEGRITY_KEYRING_EVM, | 145 | rc = integrity_digsig_verify(INTEGRITY_KEYRING_EVM, |
| 146 | xattr_data->digest, xattr_len, | 146 | (const char *)xattr_data, xattr_len, |
| 147 | calc.digest, sizeof(calc.digest)); | 147 | calc.digest, sizeof(calc.digest)); |
| 148 | if (!rc) { | 148 | if (!rc) { |
| 149 | /* we probably want to replace rsa with hmac here */ | 149 | /* we probably want to replace rsa with hmac here */ |
