aboutsummaryrefslogtreecommitdiff
blob: 5adb545b04910c950bd6784b4f652406975ad96f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# basic functionality check (violations are caught)
[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0

addwrite $PWD
touch file || exit 1

adddeny $PWD
# we cant check exit status as ptrace code kills child
linkat-0 -1,EACCES AT_FDCWD file AT_FDCWD file-linked 0 #|| exit 1
test -s sandbox.log