#!/bin/sh

# Covert channel: signal another process by binding to a port which
# represents a byte value. Other process will find that port already bound.

. ./test-functions

echo -n "Failed bind tainted test:		"
( # Sub-shell so as not to taint the test process.
	IGNORE=$(cat confidential)
	./programs/bindportsucceed
) &
_bindport=$(copy programs/bindportfail)
( # Sub-shell so as not to taint the test process.
	# Should fail to bind as tainted process already bound.
	test_taint_logged $_bindport
)
wait
rm -f $_bindport
