#!/bin/sh

. ./test-functions

echo -n "Tainted shared memory test:	"
( # Sub-shell so as not to taint the test process.
	_wget=$(copy wget)
	ipcrm -a
	./programs/shmwrite 1 `cat confidential` 0
	./programs/shmread 1 0 | test_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null
	ipcrm -a
	rm -f $_wget
)
