sandbox
setting is a horrifying field of landmines of implementation complexity #936
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#936
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
For starters,
useChroot
is an erroneous name inlocal-derivation-goal.cc
. chroot is never used on darwin butuseChroot
is still applicable there. And there's a whole bunch of semantics which are confusing at best and broken at worst.Plus, it's unclear how to correctly experimentally use a new minimal sandbox on Darwin (#756, #386, etc). Such a policy would specifically just ban broken homebrew interactions and be applied to "no-sandbox" derivations. How would such a thing be opted out during a stabilization period? I don't know!!
The sandbox has so many confusing knobs which interact badly together and was more congealed than designed. Some of this complexity is inherent:
Some of it is, however, self-owns:
__darwinAllowLocalNetworking
which aren't documented or in any comprehensible schema: #217sandbox = relaxed
apparently means more than just "on by default with opt-out allowed"???!EsperLily says on Matrix:
I think that the way forward on this is to come up with a coherent idea of what the sandbox is for and what states it should be in, in addition to what the platform specific needs are. That can then be used to redesign the code so it is possible to understand and so that it can be documented #121.