Skip to content

Commit 2475cf3

Browse files
committed
fix ausearch
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 6670778 commit 2475cf3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/dep_rust.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@ jobs:
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

0 commit comments

Comments
 (0)