Skip to contentSkip to conversation

tests/filter_exclude: euid filtering now possible in exclude filter

PATCH In review Paul Moore 1 participant 2 messages Feb 14, 2023

lore
Share & tools
lore

Paul Moore

author
#0 lore raw

PATCH 1/1 tests/filter_exclude: euid filtering now possible in exclude filter

Starting with Steve's audit userspace v3.1, an euid exclude filter no longer results in an error. Adjust the test accordingly.

---
 tests/filter_exclude/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/filter_exclude/test +1 -1
index 7a8e3fb..248fc54 100755
@@ -103,7 +103,7 @@ $result = system("auditctl -a exclude,always -F ppid=$ppid >/dev/null 2>&1");
 ok( $result ne 0 );
 system("auditctl -d exclude,always -F ppid=$ppid >/dev/null 2>&1");
 $result = system("auditctl -a exclude,always -F euid=$euid >/dev/null 2>&1");
-ok( $result ne 0 );
+ok( $result, 0 );
 system("auditctl -d exclude,always -F euid=$euid >/dev/null 2>&1");
 $result =
   system("auditctl -a exclude,always -F obj_user=$obj_user >/dev/null 2>&1");
Signature · 6 lines
2.39.1

--
Linux-audit mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-audit
author
#1 lore raw
Quoted 8 lines · Paul Moore

Starting with Steve's audit userspace v3.1, an euid exclude filter no longer results in an error. Adjust the test accordingly.

---
 tests/filter_exclude/test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

As we are nearing the next upstream kernel release I'm going to merge this right now so the tests continue to run clear (making it easier to catch other regressions quickly), but if anyone has any concerns over this patch please still voice them and I'll be sure to fix them up.

Quoted 15 lines
tests/filter_exclude/test +1 -2
index 7a8e3fb..248fc54 100755
@@ -103,7 +103,7 @@ $result = system("auditctl -a exclude,always -F ppid=$ppid >/dev/null 2>&1");
 ok( $result ne 0 );
 system("auditctl -d exclude,always -F ppid=$ppid >/dev/null 2>&1");
 $result = system("auditctl -a exclude,always -F euid=$euid >/dev/null 2>&1");
-ok( $result ne 0 );
+ok( $result, 0 );
 system("auditctl -d exclude,always -F euid=$euid >/dev/null 2>&1");
 $result =
   system("auditctl -a exclude,always -F obj_user=$obj_user >/dev/null 2>&1");
--

2.39.1

Signature · 6 lines
paul-moore.com

--
Linux-audit mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-audit