From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#18994: Daemon does not preserve supplementary groups of build users Date: Sat, 08 Nov 2014 15:01:43 +0100 Message-ID: <87ppcxsse0.fsf@gnu.org> 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]:39611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn6bh-0001rR-SV for bug-guix@gnu.org; Sat, 08 Nov 2014 09:03:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn6bX-0002fM-Lm for bug-guix@gnu.org; Sat, 08 Nov 2014 09:03:13 -0500 Received: from debbugs.gnu.org ([140.186.70.43]:56238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn6bX-0002eM-Is for bug-guix@gnu.org; Sat, 08 Nov 2014 09:03:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xn6bW-00017x-3w for bug-guix@gnu.org; Sat, 08 Nov 2014 09:03:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn6aR-0001lg-3r for bug-guix@gnu.org; Sat, 08 Nov 2014 09:02:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xn6aI-0002J7-30 for bug-guix@gnu.org; Sat, 08 Nov 2014 09:01:55 -0500 Received: from hera.aquilenet.fr ([2a01:474::1]:50595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xn6aH-0002Iw-SI for bug-guix@gnu.org; Sat, 08 Nov 2014 09:01:46 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8F9943E49 for ; Sat, 8 Nov 2014 15:01:44 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1W+y2DB22y+K for ; Sat, 8 Nov 2014 15:01:44 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 4C6AD14FA for ; Sat, 8 Nov 2014 15:01:44 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 18994@debbugs.gnu.org Currently, the build environment made by the daemon does not preserve supplementary groups of the build users. Thus, even though the standalone Guix system sets /dev/kvm 660, owned by root:kvm, and adds the build users to the kvm group, build users are unable to access it. This can be see with: (gexp->derivation "foo" #~(begin (mkdir #$output)(pk (stat:gid (stat "/dev/kvm")) (getgroups)))) The workaround for now is to make /dev/kvm 666. Ludo=E2=80=99.