#!/bin/sh

. ./test-functions

echo -n "Tainted shared memory test:	"
_wget=$(copy wget)
ipcrm -a
( # Sub-shell so as not to taint the test process.
	./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
