From ad542aba23dd3ef9b2f4526f8b3c680f0e07e5f0 Mon Sep 17 00:00:00 2001 From: Steve Beattie Date: Wed, 7 Mar 2007 18:54:28 +0000 Subject: [PATCH] Add a test for cap net_bind_service w/tcp. Alas, this test is still disabled. --- tests/regression/subdomain/tcp.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/regression/subdomain/tcp.sh b/tests/regression/subdomain/tcp.sh index 504aa9454..fe28d3294 100755 --- a/tests/regression/subdomain/tcp.sh +++ b/tests/regression/subdomain/tcp.sh @@ -68,7 +68,13 @@ runchecktest "TCP (accept, connect)" pass $port # will always fail unless process has net_bind_service capability. # you damn well better not be running telnetd. genprofile tcp_accept: tcp_connect: -runchecktest "TCP (accept, connect)" fail 23 +runchecktest "TCP (accept, connect, port 23)" fail 23 + +# PASS TEST - simple / low-numbered port +# will always fail unless process has net_bind_service capability. +# you damn well better not be running telnetd. +genprofile tcp_accept: tcp_connect: cap:net_bind_service +runchecktest "TCP (accept, connect, port 23)" pass 23 # The following tests will FAIL only if netdomain is enabled. If # netdomain is disabled, they are expected to pass. netdomain is