summaryrefslogtreecommitdiff
path: root/Tests/Kernel/TestKernelUnveil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Kernel/TestKernelUnveil.cpp')
-rw-r--r--Tests/Kernel/TestKernelUnveil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/Kernel/TestKernelUnveil.cpp b/Tests/Kernel/TestKernelUnveil.cpp
index 17faade242..884bf18314 100644
--- a/Tests/Kernel/TestKernelUnveil.cpp
+++ b/Tests/Kernel/TestKernelUnveil.cpp
@@ -52,4 +52,8 @@ TEST_CASE(test_failures)
res = unveil("/bin", "w");
if (res >= 0)
FAIL("unveil permitted after unveil state locked");
+
+ res = access("/bin/id", F_OK);
+ if (res == 0)
+ FAIL("access(..., F_OK) permitted after locked veil without relevant unveil");
}