mirror of https://github.com/CISOfy/lynis.git
Use posix egrep options, fixing issue #1166
This commit is contained in:
parent
c89fc248dc
commit
886adae4ef
|
@ -80,7 +80,7 @@
|
|||
if [ ${CANREAD} -eq 1 ]; then
|
||||
# Only check the files that are not installed by a package, unless enabled by profile
|
||||
if [ ${SSL_CERTIFICATE_INCLUDE_PACKAGES} -eq 1 ] || ! FileInstalledByPackage "${FILE}"; then
|
||||
echo ${FILE} | ${EGREPBINARY} --quiet ".cer$|.der$"
|
||||
echo ${FILE} | ${EGREPBINARY} -q ".cer$|.der$"
|
||||
CER_DER=$?
|
||||
OUTPUT=$(${GREPBINARY} -q 'BEGIN CERT' "${FILE}")
|
||||
if [ $? -eq 0 -o ${CER_DER} -eq 0 ]; then
|
||||
|
@ -200,7 +200,7 @@
|
|||
LogText "Result: Found LUKS encrypted swap device: ${BLOCK_DEV}"
|
||||
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS + 1))
|
||||
Report "encrypted_swap[]=${BLOCK_DEV},LUKS"
|
||||
elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} --quiet "cipher:"; then
|
||||
elif ${CRYPTSETUPBINARY} status "${BLOCK_DEV}" 2> /dev/null | ${GREPBINARY} -q "cipher:"; then
|
||||
LogText "Result: Found non-LUKS encrypted swap device: ${BLOCK_DEV}"
|
||||
ENCRYPTED_SWAPS=$((ENCRYPTED_SWAPS + 1))
|
||||
Report "encrypted_swap[]=${BLOCK_DEV},other"
|
||||
|
|
Loading…
Reference in New Issue