summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-privsep.pl
diff options
context:
space:
mode:
Diffstat (limited to 'regress/usr.sbin/syslogd/args-privsep.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-privsep.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/regress/usr.sbin/syslogd/args-privsep.pl b/regress/usr.sbin/syslogd/args-privsep.pl
index 66ade910f65..ac300164b94 100644
--- a/regress/usr.sbin/syslogd/args-privsep.pl
+++ b/regress/usr.sbin/syslogd/args-privsep.pl
@@ -2,7 +2,7 @@
# The syslogd writes it into a file and through a pipe.
# The syslogd passes it via UDP to the loghost.
# The server receives the message on its UDP socket.
-# Find the message in client, file, pipe, syslogd, server log.
+# Find the message in client, file, syslogd, server log.
# Check fstat for the parent and child process.
# Check ktrace for setting the correct uid and gid and exec priv.
@@ -12,6 +12,9 @@ use warnings;
our %args = (
syslogd => {
up => qr/fork\+exec done/,
+ nopipe => 1,
+ noconsole => 1,
+ nouser => 1,
loggrep => {
qr/ -F / => 0,
qr/ -d / => 1,
@@ -30,13 +33,15 @@ our %args = (
qr/^_syslogd .* internet/ => 2,
},
ktrace => {
- qr/syslogd CALL setresuid(.*"_syslogd".*){3}/ => 2,
- qr/syslogd CALL setresgid(.*"_syslogd".*){3}/ => 2,
+ qr/syslogd CALL setresuid(.*"_syslogd".*){3}/ => 1,
+ qr/syslogd CALL setresgid(.*"_syslogd".*){3}/ => 1,
qr/syslogd CALL setsid/ => 0,
qr/syslogd RET execve 0/ => 2,
qr/\[\d\] = "-P"/ => 1,
},
},
+ pipe => { nocheck => 1 },
+ tty => { nocheck => 1 },
);
1;