evm: call dump_security_xattr() in all cases to remove code duplication
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 31 Jan 2023 02:00:31 +0000 (10:00 +0800)
committerMimi Zohar <zohar@linux.ibm.com>
Tue, 31 Jan 2023 17:47:16 +0000 (12:47 -0500)
commit8250865c164e3ddb930953523c93b3c821bdd322
treedb80b7f83d3d8ad90858edff8b4f3b92d3d4d8e7
parentb8dc57947379ca02500540bf942ecb42a30bfe92
evm: call dump_security_xattr() in all cases to remove code duplication

Currently dump_security_xattr() is used to dump security xattr value
which is larger than 64 bytes, otherwise, pr_debug() is used. In order
to remove code duplication, refactor dump_security_xattr() and call it
in all cases.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/evm/evm_crypto.c