diff options
author | 2009-10-25 04:44:21 -0400 | |
---|---|---|
committer | 2009-10-25 05:23:17 -0400 | |
commit | ae95bc8deb1894292a26aea88490ba00f2d68c2a (patch) | |
tree | f6c6c51f9e811c0c1aec37c30e7544f7b570e589 /tests/utimensat-2.sh | |
parent | libsandbox: handle fd's w/out files in proc fd/ (diff) | |
download | sandbox-ae95bc8deb1894292a26aea88490ba00f2d68c2a.tar.gz sandbox-ae95bc8deb1894292a26aea88490ba00f2d68c2a.tar.bz2 sandbox-ae95bc8deb1894292a26aea88490ba00f2d68c2a.zip |
libsandbox: fix ptrace decode of utimensat
The ptrace code skipped one too many arguments when decoding the utimensat
syscall which caused random utils to fail with garbage paths.
URL: http://bugs.gentoo.org/288227
Reported-by: RB <aoz.syn@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/utimensat-2.sh')
-rwxr-xr-x | tests/utimensat-2.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/utimensat-2.sh b/tests/utimensat-2.sh new file mode 100755 index 0000000..110da4e --- /dev/null +++ b/tests/utimensat-2.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# basic functionality check (violations are caught) + +adddeny $PWD +export SANDBOX_LOG=$PWD/sb.log +utimensat-0 -1,EACCES AT_FDCWD . NULL 0 || exit 1 +test -s sb.log |