feat(sandbox)!: the sandbox is off by default #3132
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3132
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/sandbox-off-default"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The game's process sandbox is now off by default, on Linux and Windows.
HOS_SANDBOX=1(oron,true,yes)confines the game as before,
strictrefuses to start unconfined; unset,0or any other word runs it unconfined.This lowers security: by default the game, and every installed player's script mod (unsafe-tier ones included), can
do whatever the player's user account can. Script mods are not held when the sandbox is off.
Read first:
host/sandbox_plan.h(sbx_mode_of),build_coresandbox_linux::mode_ofandsandbox_windows::wanted,longshot-game/src/runtime.rsconfined(). Also: the Windows job queue's NVIDIA cache rule, the switch's row (nowplayer) and the docs.Testing
Tested: Linux, no game run. Through the job queue: the
test_sandbox_*checks,test_switch_table.py,test_job_queue.py,cargo testforbuild-coreandlongshot-game.test_sandbox_linux.pypasses after its helperwas set to ask for the sandbox (run again on its own).
host/sandbox_windows.cpasses an llvm-mingw syntax check.Not clean:
test_sandbox_windows.pyfails on "the builder says the needs and its notes in the game's hello": it looks fors.note.push(...), and the source, unchanged here, hass.note = note_lines(&said). Not run on amaincheckout.build-driver'sthe_repository_s_lock_and_the_table_agreefails; this PR touches neithertools.locknor thatcrate. Not run on a
maincheckout. The run stopped there, so the rest ofbuild-driverandlongshot-buildermaynot have run.
Still to test:
HOS_SANDBOXand a script mod on, expectingsandbox: offin the log, the modrunning, pads, saves and mod network working (by hand)
HOS_SANDBOX=1, expectingsandbox: confinedas before (by hand)Measurements
Nothing measured: a change of the sandbox's default, not run in game.
Risks
HOS_SANDBOX=1restores the old behaviour; so does a revert.one, so pipelines may compile again once.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (not run whole; see Testing)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Possibly related, for context:
WIP: feat(sandbox)!: the sandbox is off by defaultto feat(sandbox)!: the sandbox is off by defaultllun referenced this pull request2026-12-03 23:38:52 +00:00