#!/bin/sh

. ./test-functions

echo -n "Tainted setxattr test:		"

tmp=$(mktemp sft-XXXXXX)

( # Sub-shell so as not to taint the test process.
	echo 8.8.8.8 > $tmp
	read IGNORE < confidential
	setfattr -n user.foo -v bar $tmp
)

( # Sub-shell so as not to taint the test process.
	_ping=$(copy ping)
	test_evil_bit $_ping -c 1 `cat $tmp`
	rm -f $_ping
)

rm -f $tmp
