mirror of
https://github.com/NixOS/nix.git
synced 2025-11-19 08:49:35 +01:00
Enable socket-only daemon operations without filesystem access
Allows the Nix daemon to serve store paths purely over Unix domain sockets without requiring the client to have filesystem access to the store directory. This can be useful for VM setups where the host serves paths to the guest via socket. Tests verify socket-only operations work for copying, substitution, and remote building (tested on Linux), with both local and binary cache stores.
This commit is contained in:
parent
341c42f321
commit
6a017a2a87
6 changed files with 174 additions and 2 deletions
11
tests/functional/socket-only-daemon-binary-cache.sh
Executable file
11
tests/functional/socket-only-daemon-binary-cache.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run the socket-only-daemon test with a binary cache backend
|
||||
# This tests that
|
||||
# - The daemon can serve a binary cache store; not just a local store
|
||||
# - Client's store operations do not reach into the file system secretly,
|
||||
# because the files don't exist in the places where a local store would
|
||||
# put them. (We have NARs instead)
|
||||
|
||||
daemon_backing_store_is_binary_cache=1
|
||||
source socket-only-daemon.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue