git: 7791ecf04b48 - main - usr.sbin/praudit: Fix tests after 5619d49e07
Alex Richardson
arichardson at FreeBSD.org
Wed Feb 3 16:04:27 UTC 2021
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=7791ecf04b48a0c365b003447f479ec890115dfc
commit 7791ecf04b48a0c365b003447f479ec890115dfc
Author: Alex Richardson <arichardson at FreeBSD.org>
AuthorDate: 2021-02-03 15:26:19 +0000
Commit: Alex Richardson <arichardson at FreeBSD.org>
CommitDate: 2021-02-03 16:02:46 +0000
usr.sbin/praudit: Fix tests after 5619d49e07
Commit 5619d49e07 made the getgrgid() call inside bsm work as
intended so we now print "wheel" instead of a numeric 0 in the rgid field.
Reviewed By: markj
Differential Revision: https://reviews.freebsd.org/D28462
---
usr.sbin/praudit/tests/input/del_comma | 2 +-
usr.sbin/praudit/tests/input/del_underscore | 2 +-
usr.sbin/praudit/tests/input/no_args | 2 +-
usr.sbin/praudit/tests/input/numeric_form | 2 +-
usr.sbin/praudit/tests/input/same_line | 2 +-
usr.sbin/praudit/tests/input/short_form | 2 +-
usr.sbin/praudit/tests/input/xml_form | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/usr.sbin/praudit/tests/input/del_comma b/usr.sbin/praudit/tests/input/del_comma
index 3dbec7bd2c5d..09f089450ac3 100644
--- a/usr.sbin/praudit/tests/input/del_comma
+++ b/usr.sbin/praudit/tests/input/del_comma
@@ -2,6 +2,6 @@ header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec
argument,1,0x1c,domain
argument,2,0x2,type
argument,3,0x0,protocol
-subject,root,root,wheel,root,0,7053,4724,37636,10.0.2.2
+subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2
return,success,3
trailer,113
diff --git a/usr.sbin/praudit/tests/input/del_underscore b/usr.sbin/praudit/tests/input/del_underscore
index ca515ed49ef3..cfc7d4a932f0 100644
--- a/usr.sbin/praudit/tests/input/del_underscore
+++ b/usr.sbin/praudit/tests/input/del_underscore
@@ -2,6 +2,6 @@ header_113_11_socket(2)_0_Mon Jun 11 10:18:45 2018_ + 380 msec
argument_1_0x1c_domain
argument_2_0x2_type
argument_3_0x0_protocol
-subject_root_root_wheel_root_0_7053_4724_37636_10.0.2.2
+subject_root_root_wheel_root_wheel_7053_4724_37636_10.0.2.2
return_success_3
trailer_113
diff --git a/usr.sbin/praudit/tests/input/no_args b/usr.sbin/praudit/tests/input/no_args
index 3dbec7bd2c5d..09f089450ac3 100644
--- a/usr.sbin/praudit/tests/input/no_args
+++ b/usr.sbin/praudit/tests/input/no_args
@@ -2,6 +2,6 @@ header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec
argument,1,0x1c,domain
argument,2,0x2,type
argument,3,0x0,protocol
-subject,root,root,wheel,root,0,7053,4724,37636,10.0.2.2
+subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2
return,success,3
trailer,113
diff --git a/usr.sbin/praudit/tests/input/numeric_form b/usr.sbin/praudit/tests/input/numeric_form
index 3dbec7bd2c5d..09f089450ac3 100644
--- a/usr.sbin/praudit/tests/input/numeric_form
+++ b/usr.sbin/praudit/tests/input/numeric_form
@@ -2,6 +2,6 @@ header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec
argument,1,0x1c,domain
argument,2,0x2,type
argument,3,0x0,protocol
-subject,root,root,wheel,root,0,7053,4724,37636,10.0.2.2
+subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2
return,success,3
trailer,113
diff --git a/usr.sbin/praudit/tests/input/same_line b/usr.sbin/praudit/tests/input/same_line
index 7662c3c6ed37..5a8f19d8901f 100644
--- a/usr.sbin/praudit/tests/input/same_line
+++ b/usr.sbin/praudit/tests/input/same_line
@@ -1 +1 @@
-header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec,argument,1,0x1c,domain,argument,2,0x2,type,argument,3,0x0,protocol,subject,root,root,wheel,root,0,7053,4724,37636,10.0.2.2,return,success,3,trailer,113,
+header,113,11,socket(2),0,Mon Jun 11 10:18:45 2018, + 380 msec,argument,1,0x1c,domain,argument,2,0x2,type,argument,3,0x0,protocol,subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2,return,success,3,trailer,113,
diff --git a/usr.sbin/praudit/tests/input/short_form b/usr.sbin/praudit/tests/input/short_form
index cc1a705940bb..8e5751fd9efe 100644
--- a/usr.sbin/praudit/tests/input/short_form
+++ b/usr.sbin/praudit/tests/input/short_form
@@ -2,6 +2,6 @@ header,113,11,AUE_SOCKET,0,Mon Jun 11 10:18:45 2018, + 380 msec
argument,1,0x1c,domain
argument,2,0x2,type
argument,3,0x0,protocol
-subject,root,root,wheel,root,0,7053,4724,37636,10.0.2.2
+subject,root,root,wheel,root,wheel,7053,4724,37636,10.0.2.2
return,success,3
trailer,113
diff --git a/usr.sbin/praudit/tests/input/xml_form b/usr.sbin/praudit/tests/input/xml_form
index e49b00c028da..d19adeed2b3f 100644
--- a/usr.sbin/praudit/tests/input/xml_form
+++ b/usr.sbin/praudit/tests/input/xml_form
@@ -4,7 +4,7 @@
<argument arg-num="1" value="0x1c" desc="domain" />
<argument arg-num="2" value="0x2" desc="type" />
<argument arg-num="3" value="0x0" desc="protocol" />
-<subject audit-uid="root" uid="root" gid="wheel" ruid="root" rgid="0" pid="7053" sid="4724" tid="37636 10.0.2.2" />
+<subject audit-uid="root" uid="root" gid="wheel" ruid="root" rgid="wheel" pid="7053" sid="4724" tid="37636 10.0.2.2" />
<return errval="success" retval="3" />
</record>
<?xml version='1.0' ?>
More information about the dev-commits-src-all
mailing list