From 2b8b95c186881a5abe295efba52d54ee7b8f4979 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 20 Dec 2009 21:13:40 -0500 Subject: libsandbox: catch calls to remove() People rarely use this, but all it takes is one lame package. URL: http://bugs.gentoo.org/297684 Reported-by: Pacho Ramos Signed-off-by: Mike Frysinger --- tests/unlink-1.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tests/unlink-1.sh (limited to 'tests/unlink-1.sh') diff --git a/tests/unlink-1.sh b/tests/unlink-1.sh new file mode 100755 index 0000000..74d4403 --- /dev/null +++ b/tests/unlink-1.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# make sure we catch openat with relative path +[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0 + +export SANDBOX_LOG=$PWD/sb.log +unlink-0 -1 f +test -e sb.log -- cgit v1.2.3-65-gdbad