summaryrefslogtreecommitdiff
path: root/lib/supple/sandbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/supple/sandbox.lua')
-rw-r--r--lib/supple/sandbox.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/supple/sandbox.lua b/lib/supple/sandbox.lua
index 57e5cd3..6a79348 100644
--- a/lib/supple/sandbox.lua
+++ b/lib/supple/sandbox.lua
@@ -78,7 +78,7 @@ local function run()
-- Run the sandbox
local result, errno = capi.lockdown()
- if result ~= "ok"
+ if result ~= "ok" and result ~= "OK"
-- START_TEST_ONLY
and result ~= "oknonroot"
-- END_TEST_ONLY
@@ -88,9 +88,9 @@ local function run()
return errno
end
--- START_TEST_ONLY
- if result ~= "oknonroot" then
--- END_TEST_ONLY
+ if result == "ok" then
+ -- Note, if result is "OK" then we're pretty hard jailed
+ -- and cannot even do this test lest we get killed
-- Check that we're definitely solidly jailed
fh, errno = sio.open("testfile", "rw")
if fh then
@@ -98,9 +98,7 @@ local function run()
luxio.unlink("testfile")
return 1
end
--- START_TEST_ONLY
end
--- END_TEST_ONLY
-- Prepare a severely limited sandbox
local sandbox_globals = {