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

Requesting feedback on possibly making macOS sandbox setup failure non-fatal #144

Open
lf- opened this issue Oct 14, 2024 · 0 comments
Open

Comments

@lf-
Copy link

lf- commented Oct 14, 2024

Hi!

It can occur that the macOS sandbox_init() call can fail if the process is already running inside a sandboxed context, which occurs in practice in Nix builds (and possibly Bazel? I am not sure), which always run in a (comparatively loose) sandbox. Currently lowdown fails to execute in such an instance with sandbox initialization failed: Operation not permitted if it is built with the sandbox enabled.

Currently nixpkgs builds both with the sandbox enabled and with it disabled here, and the correct one is selected by package authors depending on whether it will be used in the sandbox or not: NixOS/nixpkgs#346945

However, it is possible that sandbox setup failure being fatal is an oversight from it normally not having any reason to fail. If so, the behaviour could possibly be relaxed.

Do you have any thoughts on this idea?

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

No branches or pull requests

1 participant