aboutsummaryrefslogtreecommitdiff
blob: 9ae5c9a6511ac615fa04f8ead022a061c928fe9c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# make sure we reject bad renames #612202

addwrite $PWD
mkdir deny
adddeny $PWD/deny

touch file
renameat-0 -1,EACCES AT_FDCWD file AT_FDCWD deny/file || exit 1
[ -e file ]
test -s "${SANDBOX_LOG}"