Simplify boot sequence, remove terminal emblem, and introduce fastfetch script for sandbox login facts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7937879ace
commit
5f3ff481b4
24 files changed
+232
-240
No files matched your search
@@ -3,10 +3,10 @@
|
||||
# shellcheck disable=SC2034
|
||||
SANDBOX_FLAGS=(
|
||||
--read-only --network none --cap-drop ALL
|
||||
--security-opt no-new-privileges --user guest
|
||||
--security-opt no-new-privileges --user agent
|
||||
--memory 80m --memory-swap 80m --cpus 0.5 --pids-limit 50
|
||||
--ulimit nofile=256:256
|
||||
--tmpfs /tmp:size=8m,noexec,nosuid
|
||||
--log-driver none
|
||||
--hostname sandbox
|
||||
--hostname security-command
|
||||
)
|
||||
@@ -48,7 +48,7 @@ check "no network interfaces besides lo" \
|
||||
"tail -n +3 /proc/net/dev | awk '{print \$1}' | grep -v '^lo:' | wc -l" '^0$'
|
||||
check "curl cannot reach anything" \
|
||||
'curl -sS --max-time 3 http://1.1.1.1 >/dev/null && echo reachable' 'curl: \([0-9]+\)'
|
||||
check "runs as guest" 'id' 'uid=1000\(guest\)'
|
||||
check "runs as agent" 'id' 'uid=1000\(agent\)'
|
||||
check "no effective capabilities" 'grep CapEff /proc/self/status' 'CapEff:\s+0+$'
|
||||
check "no new privileges" 'grep NoNewPrivs /proc/self/status' 'NoNewPrivs:\s+1'
|
||||
check "no setuid binaries" 'find / -xdev -perm /6000 -type f 2>/dev/null | wc -l' '^0$'
|
||||
|
||||
Reference in new issue
Block a user