Add tests for backend asset handling and frontend boot sequence, remove outdated MOTD script, and add icons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0ad5b5f44f
commit
7937879ace
34 files changed
+613
-116
No files matched your search
@@ -6,7 +6,6 @@ SANDBOX_FLAGS=(
|
||||
--security-opt no-new-privileges --user guest
|
||||
--memory 80m --memory-swap 80m --cpus 0.5 --pids-limit 50
|
||||
--ulimit nofile=256:256
|
||||
--tmpfs /home/guest:size=8m,mode=1777,noexec,nosuid
|
||||
--tmpfs /tmp:size=8m,noexec,nosuid
|
||||
--log-driver none
|
||||
--hostname sandbox
|
||||
|
||||
@@ -41,8 +41,8 @@ if [[ $EXPECT_GVISOR == 1 ]]; then
|
||||
fi
|
||||
|
||||
check "rootfs is read only" 'touch /x && echo writable' 'Read-only file system'
|
||||
check "home is writable" 'echo ok > ~/probe && cat ~/probe' '^ok$'
|
||||
check "home is noexec" 'cp /bin/true ~/t && ~/t && echo executed' 'Permission denied'
|
||||
check "home is read only" 'touch ~/x && echo writable' 'Read-only file system'
|
||||
check "tmp is writable" 'echo ok > /tmp/probe && cat /tmp/probe' '^ok$'
|
||||
check "tmp is noexec" 'cp /bin/true /tmp/t && /tmp/t && echo executed' 'Permission denied'
|
||||
check "no network interfaces besides lo" \
|
||||
"tail -n +3 /proc/net/dev | awk '{print \$1}' | grep -v '^lo:' | wc -l" '^0$'
|
||||
|
||||
Reference in new issue
Block a user