Skip to content

Commit 9d1004a

Browse files
aplanasjohannbg
authored andcommitted
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 <[email protected]>
1 parent ad7d5bc commit 9d1004a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules.d/98integrity/ima-keys-load.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ load_x509_keys() {
2626
continue
2727
fi
2828

29-
# FIXME: X509ID unused?
30-
# shellcheck disable=SC2034
31-
if ! X509ID=$(evmctl import "${PUBKEY}" "${KEYRING_ID}"); then
29+
if ! evmctl import "${PUBKEY}" "${KEYRING_ID}"; then
3230
info "integrity: IMA x509 cert not loaded on keyring: ${PUBKEY}"
3331
fi
3432
done

0 commit comments

Comments
 (0)