File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 9696 # Add audit rules for KVM device monitoring
9797 echo "Adding comprehensive audit rules for KVM monitoring..."
9898
99+ ls -al /dev/kvm || echo "❌ /dev/kvm does not exist or is not accessible"
99100 # Monitor file operations on /dev/kvm (if it exists)
100101 sudo auditctl -w /dev/kvm -p rwxa -k hypervisor_kvm || echo "Failed to add /dev/kvm watch rule (device may not exist yet)"
101-
102+ ls -al /dev/kvm || echo "❌ /dev/kvm still not accessible after adding watch rule"
103+ sudo ausearch -k hypervisor_kvm
104+
102105 # Monitor device creation/deletion in /dev/
103106 sudo auditctl -w /dev/ -p wa -k device_changes || echo "Failed to add /dev/ watch rule"
104107
@@ -539,4 +542,7 @@ jobs:
539542 else
540543 echo "✅ No device permission/ownership changes detected during job execution"
541544 fi
545+
546+ echo "hi"
547+ sudo ausearch -k hypervisor_kvm -ts recent
542548
You can’t perform that action at this time.
0 commit comments