mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
daemon: Always require a signature when importing an archive.
* nix/nix-daemon/nix-daemon.cc (performOp): Pass true as the first argument to 'performOp'.
This commit is contained in:
parent
d2aa12250e
commit
aa0f8409db
1 changed files with 4 additions and 1 deletions
|
@ -440,7 +440,10 @@ static void performOp(bool trusted, unsigned int clientVersion,
|
||||||
case wopImportPaths: {
|
case wopImportPaths: {
|
||||||
startWork();
|
startWork();
|
||||||
TunnelSource source(from);
|
TunnelSource source(from);
|
||||||
Paths paths = store->importPaths(!trusted, source);
|
|
||||||
|
/* Unlike Nix, always require a signature, even for "trusted"
|
||||||
|
users. */
|
||||||
|
Paths paths = store->importPaths(true, source);
|
||||||
stopWork();
|
stopWork();
|
||||||
writeStrings(paths, to);
|
writeStrings(paths, to);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue