Skip to content

Commit

Permalink
fix(integrity): remove unused variable
Browse files Browse the repository at this point in the history
Drop X509ID variable inside the `if`, and use the same comparison that
is already in evm_enable.

Signed-off-by: Alberto Planas <aplanas@suse.com>
  • Loading branch information
aplanas authored and johannbg committed Jun 21, 2022
1 parent ad7d5bc commit 9d1004a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules.d/98integrity/ima-keys-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d1004a

Please sign in to comment.