Skip to content

NaCl process creation improvements - #2001

Open
slipher wants to merge 5 commits into
DaemonEngine:masterfrom
slipher:nacl-creation
Open

NaCl process creation improvements#2001
slipher wants to merge 5 commits into
DaemonEngine:masterfrom
slipher:nacl-creation

Conversation

@slipher

@slipher slipher commented Sep 7, 2026

Copy link
Copy Markdown
Member

Stacked on #1998. Additional changes to NaCl process creation:

  • Never use nacl_helper_bootstrap with the 64-bit loader. This lets us remove a nice chunk of cruft.
  • Clear the environment variables on Windows like we do on *nix.

slipher added 5 commits July 30, 2026 11:44
Set up the chdir and environment variable in posix_spawn.
Fixes DaemonEngine#1336.
When box64 is used for the NaCl loader, environment variables are
allowed to pass through. Make it clearer that this is the bool
argument being passed and avoid unnecessary ifdef.
Remove cvars controlling whether the Linux bootstrap loader is used.
Never use bootstrap with the amd64 loader.
Always use bootstrap with 32-bit loaders.
Remove amd64 bootstrap usage from deps.

Closes DaemonEngine#1327.
When creating a NaCl (or native exe) VM on Windows, block
evironment variables from being passed through to the 
subprocess as is done on *nix. Probably we do this since
there are NACL* variables that can disable secure sandboxing.

inheritEnvironment is always false on Windows, but I implemented
the true case anyway since it's less code than having the Q_UNUSED
and asserting it's false.
@slipher slipher changed the title Nacl creation NaCl process creation improvements Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant