#!/bin/sh

. ./test-functions

echo -n "FIFO post-create taint test:	"
( # Sub-shell so as not to taint the test process.
	fifo=$(mktemp -u sft-XXXXXX)
	mkfifo $fifo
        _wget=$(copy wget)
	cat confidential > $fifo &
	sleep 1
	setfattr -n security.simple-flow.confidential -v "true" $fifo
	head -n 1 $fifo | test_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null
	rm -f $fifo
	rm -f $_wget
)
