guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: daemon: Always require a signature when importing an archive.


From: Ludovic Courtès
Subject: 01/03: daemon: Always require a signature when importing an archive.
Date: Sat, 06 Jun 2015 17:10:24 +0000

civodul pushed a commit to branch master
in repository guix.

commit aa0f8409db9abb4d8d04127b1072f12a64b5f7ee
Author: Ludovic Courtès <address@hidden>
Date:   Sat Jun 6 18:00:58 2015 +0200

    daemon: Always require a signature when importing an archive.
    
    * nix/nix-daemon/nix-daemon.cc (performOp): Pass true as the first argument 
to
      'performOp'.
---
 nix/nix-daemon/nix-daemon.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 2b89190..10159db 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -440,7 +440,10 @@ static void performOp(bool trusted, unsigned int 
clientVersion,
     case wopImportPaths: {
         startWork();
         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();
         writeStrings(paths, to);
         break;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]