Skip to content

eBPF-based security platform

testing: cover non-executable mmap privilege records

John Fastabend3212929c65d6
diff --git a/testing/upatch/kernel-obs/priv/priv_events.py b/testing/upatch/kernel-obs/priv/priv_events.py
index e6a974be..8712fa09 100644
--- a/testing/upatch/kernel-obs/priv/priv_events.py
+++ b/testing/upatch/kernel-obs/priv/priv_events.py
@@ -284,7 +284,8 @@ def records_from(path):
def check_negative(path):
records = records_from(path)
- assert not any(record["kind"] in ("mprotect_exec", "cred_anomaly")
+ assert not any(record["kind"] in ("mmap_exec", "mprotect_exec",
+ "cred_anomaly")
for record in records), records