We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03bd442 commit 096552cCopy full SHA for 096552c
src/vmaware.hpp
@@ -12720,7 +12720,7 @@ struct VM {
12720
}
12721
12722
// rule 4: if VM::TRAP or VM::NVRAM is detected, so should VM::HYPERVISOR_BIT or VM::HYPERVISOR_STR
12723
- if ((check(VM::TRAP) || check(VM::NVRAM)) && (hv_present || (!hv_present && has_hyper_x))) {
+ if ((check(VM::TRAP) || check(VM::NVRAM)) && !hv_present && !has_hyper_x) {
12724
debug("is_hardened(): trap/NVRAM and hypervisor bit/str are not detected together");
12725
return true;
12726
0 commit comments