#!/bin/sh

. ./test-functions

echo -n "Tainted mmap test:			"
( # Sub-shell so as not to taint the test process.
	tmp=$(mktemp sft-XXXXXX)
	_wget=$(copy wget)
	export SF_WRITE_GOES_FIRST=y
	./programs/mmapwrite confidential $tmp &
	url=`./programs/mmapread $tmp`
	wait
	test_evil_bit $_wget --no-check-certificate $url --quiet -O /dev/null
	rm -f $_wget
)
