#!/bin/sh

. ./test-functions

echo -n "set xattr security test:		"
tmp=$(mktemp sft-XXXXXX)
touch $tmp
chown $SUDO_USER $tmp
su -c "setfattr -n security.simple-flow.confidential -v true $tmp" $SUDO_USER 2> /dev/null
if [ $? != 0 ]; then
	passmsg setting xattr failed as it should
else
	failmsg able to set xattr
fi
rm -f $tmp
