aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/script-16.sh')
-rwxr-xr-xtests/script-16.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/script-16.sh b/tests/script-16.sh
new file mode 100755
index 0000000..c668cfa
--- /dev/null
+++ b/tests/script-16.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+addwrite $PWD
+
+mkdir -p to-be/deleted
+cd to-be/deleted
+rmdir ../deleted
+
+# In https://bugs.gentoo.org/590084 sanbox should deny
+# access here and touch should fail:
+! touch ../foo