You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Concerning test CRYP-7931. When a swap volume is inside a LUKS encrypted volume group, the test outputs 'Found 0 encrypted and 1 unencrypted swap devices in use.'
Version
Debian 12 Bookworm
Lynis version 3.0.8
Expected behavior
I would expect the test to output 'Found 1 encrypted and 0 unencrypted swap devices in use.'
first get all encrypted volume group member names (KNAME): lsblk -lo KNAME,TYPE | grep " crypt"
then get the swap volumes based on the parent (PKNAME) in for loop: lsblk -lo NAME,KNAME,PKNAME,FSTYPE,TYPE,MOUNTPOINT | grep -e " $KNAME " | grep " swap "
Count the number of encrypted swap disks processed
extra check:
total number of swap disks should be matched with the number of encrypted swap disks above: lsblk -lo NAME,KNAME,PKNAME,FSTYPE,TYPE,MOUNTPOINT | grep " swap " | wc -l
Describe the bug
Concerning test CRYP-7931. When a swap volume is inside a LUKS encrypted volume group, the test outputs 'Found 0 encrypted and 1 unencrypted swap devices in use.'
Version
Expected behavior
I would expect the test to output 'Found 1 encrypted and 0 unencrypted swap devices in use.'
Output
Additional context
relevant source code:
lynis/include/tests_crypto
Line 188 in 59a3c4b
disk setup:
The text was updated successfully, but these errors were encountered: