summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-01-24 22:37:02 +0200
committerMimi Zohar <zohar@linux.ibm.com>2019-02-04 17:36:01 -0500
commite7fde070f39bc058c356cf366cb17ac2d643abb0 (patch)
tree1fded3e2c5bcb84fb435120b793406df249dd417 /security
parentfdb2410f7702f25f82804a261f90ad03422bd2c3 (diff)
downloadlinux-e7fde070f39bc058c356cf366cb17ac2d643abb0.tar.gz
linux-e7fde070f39bc058c356cf366cb17ac2d643abb0.tar.bz2
linux-e7fde070f39bc058c356cf366cb17ac2d643abb0.zip
evm: Use defined constant for UUID representation
Instead of sizeof use pre-defined constant for UUID representation. While here, drop the implementation details of uuid_t type. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/evm/evm_crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c
index 43e2dc3a60d0..c37d08118af5 100644
--- a/security/integrity/evm/evm_crypto.c
+++ b/security/integrity/evm/evm_crypto.c
@@ -173,8 +173,7 @@ static void hmac_add_misc(struct shash_desc *desc, struct inode *inode,
crypto_shash_update(desc, (const u8 *)&hmac_misc, sizeof(hmac_misc));
if ((evm_hmac_attrs & EVM_ATTR_FSUUID) &&
type != EVM_XATTR_PORTABLE_DIGSIG)
- crypto_shash_update(desc, &inode->i_sb->s_uuid.b[0],
- sizeof(inode->i_sb->s_uuid));
+ crypto_shash_update(desc, (u8 *)&inode->i_sb->s_uuid, UUID_SIZE);
crypto_shash_final(desc, digest);
}