Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the need for nacl_helper_bootstrap on Linux? #1327

Open
illwieckz opened this issue Oct 1, 2024 · 5 comments
Open

What is the need for nacl_helper_bootstrap on Linux? #1327

illwieckz opened this issue Oct 1, 2024 · 5 comments

Comments

@illwieckz
Copy link
Member

What is the need for nacl_helper_bootstrap on Linux?

On my end the game runs without it.

@illwieckz
Copy link
Member Author

illwieckz commented Oct 1, 2024

I noticed it because FreeBSD can run the Linux binary on Linuxulator without the bootstrap helper, it also runs with the bootstrap helper. So I wondered if that was true on Linux too, it looks like it is.

@illwieckz
Copy link
Member Author

illwieckz commented Oct 1, 2024

@Kangz would you know what the bootstrap helper is for?

@Kangz
Copy link
Contributor

Kangz commented Oct 1, 2024

The source is here. It seems to be a custom dynamic loader that loads the NaCl ELF to set up part of the sandbox but I'm not sure how it is used, or what it does exactly.

@illwieckz
Copy link
Member Author

@slipher
Copy link
Member

slipher commented Oct 3, 2024

There's a test that sheds some light on what it's supposed to do. Apparently the reserved_at_zero part is only expected to do anything on non-amd64 Linux.

One of the duties is to forbid memory mapping of some regions. Forbidding code to be mapped at certain regions is part of the secure sandboxing architecture. So you might not see something break but disabling it could let programs escape the sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants