aboutsummaryrefslogtreecommitdiff
blob: 327f4dddd0b467c04fe4967fee9309c5eefa54e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Make sure we catch removexattr.
[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0
xattr-0 ; ret=$? ; [ ${ret} -eq 0 ] || exit ${ret}

# Set it to something to make sure it works.
touch f
setxattr-0 0 f user.sandbox test 4 0 || exit 1

# Try to remove it and get rejected.
adddeny "${PWD}"
removexattr-0 0 f user.sandbox
test -e sandbox.log