summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/syslogd/args-client-udp.pl
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2015-06-28 19:12:21 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2015-06-28 19:12:21 +0000
commitf261de1ed8f1d23a25b55a0d40d28ede7ebadbeb (patch)
treebdfddaa9620e25664cf092962cc2246b9ff655a6 /regress/usr.sbin/syslogd/args-client-udp.pl
parent2d08e3874e72e40797ec87d9c4a3cfe98b449830 (diff)
Use fstat to check that the privsep parent of syslogd closes all
internet sockets also when invoked with -u.
Diffstat (limited to 'regress/usr.sbin/syslogd/args-client-udp.pl')
-rw-r--r--regress/usr.sbin/syslogd/args-client-udp.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/regress/usr.sbin/syslogd/args-client-udp.pl b/regress/usr.sbin/syslogd/args-client-udp.pl
index d9e495b15a4..3d33187ac63 100644
--- a/regress/usr.sbin/syslogd/args-client-udp.pl
+++ b/regress/usr.sbin/syslogd/args-client-udp.pl
@@ -14,6 +14,10 @@ our %args = (
},
syslogd => {
options => ["-u"],
+ fstat => {
+ qr/^root .* internet/ => 0,
+ qr/^_syslogd .* internet/ => 2,
+ },
},
file => {
loggrep => qr/ localhost syslogd-regress\[\d+\]: /. get_testlog(),