From: Alberto Planas Date: Mon, 20 Jun 2022 13:49:48 +0000 (+0200) Subject: fix(integrity): remove unused variable X-Git-Tag: 058~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d1004a4e9883ecabdca478a809efb5501a1e47a;p=thirdparty%2Fdracut.git fix(integrity): remove unused variable Drop X509ID variable inside the `if`, and use the same comparison that is already in evm_enable. Signed-off-by: Alberto Planas --- diff --git a/modules.d/98integrity/ima-keys-load.sh b/modules.d/98integrity/ima-keys-load.sh index be234761d..2374550b8 100755 --- a/modules.d/98integrity/ima-keys-load.sh +++ b/modules.d/98integrity/ima-keys-load.sh @@ -26,9 +26,7 @@ load_x509_keys() { continue fi - # FIXME: X509ID unused? - # shellcheck disable=SC2034 - if ! X509ID=$(evmctl import "${PUBKEY}" "${KEYRING_ID}"); then + if ! evmctl import "${PUBKEY}" "${KEYRING_ID}"; then info "integrity: IMA x509 cert not loaded on keyring: ${PUBKEY}" fi done