Only expose runtime closure by default
Instead of binding the entire `/nix/store`. This behavior can be changed by overriding `basePermissions`.
This commit is contained in:
parent
cd825bf411
commit
7d3efead61
4 changed files with 157 additions and 1 deletions
|
|
@ -6,10 +6,10 @@ pkgs: let helpers = import ./helpers.nix pkgs; in combinators: with combinators;
|
|||
(unsafe-add-raw-args "--clearenv")
|
||||
(unsafe-add-raw-args "--die-with-parent")
|
||||
(add-pkg-deps [ pkgs.coreutils ])
|
||||
(readonly "/nix/store")
|
||||
(readonly "/bin/sh")
|
||||
(fwd-env "LANG")
|
||||
(fwd-env "HOME")
|
||||
(fwd-env "TERM")
|
||||
bind-nix-store-runtime-closure
|
||||
fake-passwd
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue