From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: [PATCH v4] daemon: Set ownership of kept build directories to the calling user. Date: Mon, 26 Dec 2016 00:34:42 +0100 Message-ID: <20161226003442.2a342b46@scratchpost.org> References: <20161223133331.GA2589@jocasta.intra> <20161223221512.5926b358@scratchpost.org> <585E6B48.3010700@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46736) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLIJe-00068Z-Q0 for guix-devel@gnu.org; Sun, 25 Dec 2016 18:34:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLIJZ-0005in-Uf for guix-devel@gnu.org; Sun, 25 Dec 2016 18:34:58 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:55383) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cLIJZ-0005gI-PG for guix-devel@gnu.org; Sun, 25 Dec 2016 18:34:53 -0500 In-Reply-To: <585E6B48.3010700@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel Hi, On Sat, 24 Dec 2016 13:34:16 +0100 Hartmut Goebel wrote: > The "magic value" for gid is -1, too, as you can see in > nix/nix-daemon/nix-daemon.cc. > > gid 0 is not used as a magic value. As you can read in the comment, the > test just prohibits changing the group to "root": > > settings.clientGid != 0 ? settings.clientGid : -1 Ah, ok then. Sorry for the noise...