Skip to content

Commit f63f411

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(integrity): do not display any error if there is no IMA certificate
IMA appraisal can be used without digital signatures, just by storing hash digests instead.
1 parent b452270 commit f63f411

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ load_x509_keys() {
1717
IMAKEYSDIR="/etc/keys/ima"
1818
fi
1919

20-
PUBKEY_LIST=$(ls "${NEWROOT}"${IMAKEYSDIR}/*)
21-
for PUBKEY in ${PUBKEY_LIST}; do
20+
for PUBKEY in "${NEWROOT}${IMAKEYSDIR}"/*; do
2221
# check for public key's existence
2322
if [ ! -f "${PUBKEY}" ]; then
2423
if [ "${RD_DEBUG}" = "yes" ]; then

0 commit comments

Comments
 (0)