mirror of https://github.com/CISOfy/lynis.git
[CRYP-7930] replaced incorrect PATH column with alternative
This commit is contained in:
parent
a87c2b10f9
commit
0d58ee77a0
|
@ -139,7 +139,7 @@
|
|||
|
||||
# cryptsetup only works as root
|
||||
if [ -n "${LSBLKBINARY}" -a -n "${CRYPTSETUPBINARY}" -a ${FORENSICS_MODE} -eq 0 ]; then
|
||||
for BLOCK_DEV in $(${LSBLKBINARY} --noheadings -o PATH); do
|
||||
for BLOCK_DEV in $(${LSBLKBINARY} --noheadings --list --paths -o NAME); do
|
||||
if ${CRYPTSETUPBINARY} isLuks ${BLOCK_DEV}; then
|
||||
LogText "Result: Found LUKS encrypted block device: ${BLOCK_DEV}"
|
||||
Report "encryption[]=luks,block_device,${BLOCK_DEV}"
|
||||
|
|
Loading…
Reference in New Issue