From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH v4] daemon: Set ownership of kept build directories to the calling user. Date: Fri, 09 Dec 2016 15:23:14 +0100 Message-ID: <87bmwlchbh.fsf@gnu.org> References: <58494E16.9010909@crazy-compilers.com> <1481199254-9683-1-git-send-email-h.goebel@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cFM55-0005Ox-EX for guix-devel@gnu.org; Fri, 09 Dec 2016 09:23:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cFM4z-0005X2-83 for guix-devel@gnu.org; Fri, 09 Dec 2016 09:23:23 -0500 In-Reply-To: <1481199254-9683-1-git-send-email-h.goebel@crazy-compilers.com> (Hartmut Goebel's message of "Thu, 8 Dec 2016 13:14:14 +0100") 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@gnu.org Hartmut Goebel skribis: > Fixes . > > * nix/libstore/globals.hh (Settings) Add clientUid and clientGid. > * nix/nix-daemon/nix-daemon.cc (daemonLoop] Store UID and GID of the > caller in settings. > * nix/libstore/build.cc (_chown): New function. > (DerivationGoal::deleteTmpDir): Use it, change ownership of build > directory if it is kept and the new owner is not root. OK, please push. Thank you! Ludo=E2=80=99.