diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-06-04 00:19:20 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-06-04 00:19:20 -0400 |
commit | 70f148095b7b9acd4e8329da0766aadc88b017d8 (patch) | |
tree | f9c69308721da245f85bf0f09dfffc6234d9ab61 /tests | |
parent | libsandbox: make sure fopen64 uses 64bit funcs (diff) | |
download | sandbox-70f148095b7b9acd4e8329da0766aadc88b017d8.tar.gz sandbox-70f148095b7b9acd4e8329da0766aadc88b017d8.tar.bz2 sandbox-70f148095b7b9acd4e8329da0766aadc88b017d8.zip |
libsandbox: add pre checks to static tracing
The normal wrapped functions go through some "pre checks" where certain
normal conditions are not flagged as problematic. The static tracing
lacked those pre checks though.
URL: http://bugs.gentoo.org/265885
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Reported-by: Daniel Robbins <drobbins@funtoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/open_static-1.sh | 2 | ||||
-rwxr-xr-x | tests/openat_static-1.sh | 2 | ||||
-rwxr-xr-x | tests/openat_static-2.sh | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/open_static-1.sh b/tests/open_static-1.sh index 99c24ec..0143402 100755 --- a/tests/open_static-1.sh +++ b/tests/open_static-1.sh @@ -9,5 +9,5 @@ open_static-0 3 ok O_RDONLY 0666 || exit 1 export SANDBOX_LOG=$PWD/sb.log mkdir deny || exit 1 adddeny $PWD/deny -open_static-0 -1 deny/not-ok O_WRONLY 0666 +open_static-0 -1 deny/not-ok "O_WRONLY|O_CREAT" 0666 test -e sb.log diff --git a/tests/openat_static-1.sh b/tests/openat_static-1.sh index 16e1013..a00b19c 100755 --- a/tests/openat_static-1.sh +++ b/tests/openat_static-1.sh @@ -9,5 +9,5 @@ openat_static-0 3 AT_FDCWD ok O_RDONLY 0666 || exit 1 export SANDBOX_LOG=$PWD/sb.log mkdir deny || exit 1 adddeny $PWD/deny -openat_static-0 -1 AT_FDCWD deny/not-ok O_WRONLY 0666 +openat_static-0 -1 AT_FDCWD deny/not-ok "O_WRONLY|O_CREAT" 0666 test -e sb.log diff --git a/tests/openat_static-2.sh b/tests/openat_static-2.sh index f2f4152..00a948e 100755 --- a/tests/openat_static-2.sh +++ b/tests/openat_static-2.sh @@ -9,5 +9,5 @@ openat_static-0 3 AT_FDCWD ok O_RDONLY 0666 || exit 1 export SANDBOX_LOG=$PWD/sb.log mkdir deny || exit 1 adddeny $PWD/deny -openat_static-0 -1 AT_FDCWD $PWD/deny/not-ok O_WRONLY 0666 +openat_static-0 -1 AT_FDCWD $PWD/deny/not-ok "O_WRONLY|O_CREAT" 0666 test -e sb.log |