Skip to content

Commit

Permalink
Fix a typo in T108 - Linux VM Check via Hardware (#2948)
Browse files Browse the repository at this point in the history
`/sys/class/dmi/id/product_name` is being compared twice instead of using `/sys/class/dmi/id/chassis_vendor`
  • Loading branch information
spyder-griffith authored Sep 30, 2024
1 parent d9bd704 commit f80dec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion atomics/T1082/T1082.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ atomic_tests:
command: |
if [ -f /sys/class/dmi/id/bios_version ]; then cat /sys/class/dmi/id/bios_version | grep -i amazon; fi
if [ -f /sys/class/dmi/id/product_name ]; then cat /sys/class/dmi/id/product_name | grep -i "Droplet\|HVM\|VirtualBox\|VMware"; fi
if [ -f /sys/class/dmi/id/product_name ]; then cat /sys/class/dmi/id/chassis_vendor | grep -i "Xen\|Bochs\|QEMU"; fi
if [ -f /sys/class/dmi/id/chassis_vendor ]; then cat /sys/class/dmi/id/chassis_vendor | grep -i "Xen\|Bochs\|QEMU"; fi
if [ -x "$(command -v dmidecode)" ]; then sudo dmidecode | grep -i "microsoft\|vmware\|virtualbox\|quemu\|domu"; fi
if [ -f /proc/scsi/scsi ]; then cat /proc/scsi/scsi | grep -i "vmware\|vbox"; fi
if [ -f /proc/ide/hd0/model ]; then cat /proc/ide/hd0/model | grep -i "vmware\|vbox\|qemu\|virtual"; fi
Expand Down

0 comments on commit f80dec9

Please sign in to comment.