aboutsummaryrefslogtreecommitdiff
blob: e815b57247c0ab0f673cb51ba508558406b89770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# basic open tests with static binaries
[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0

addwrite $PWD
open_static-0 3 ok "O_WRONLY|O_CREAT" 0666 || exit 1
open_static-0 3 ok O_RDONLY 0666 || exit 1

mkdir deny || exit 1
adddeny $PWD/deny
open_static-0 -1,EPERM deny/not-ok "O_WRONLY|O_CREAT" 0666 || exit 1
test -e sandbox.log