From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36335: Is /dev/kvm missing ACLs? Date: Thu, 27 Jun 2019 15:45:33 +0200 Message-ID: <87sgrv16rm.fsf@gnu.org> References: <87sgs1c4r0.fsf@gmail.com> <87v9wu4v3l.fsf@gnu.org> <87d0izlere.fsf@gmail.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:470:142:3::10]:38712) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hgUj1-0004jB-4X for bug-guix@gnu.org; Thu, 27 Jun 2019 09:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hgUiz-0000Ow-1q for bug-guix@gnu.org; Thu, 27 Jun 2019 09:46:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hgUiw-0000Nx-EI for bug-guix@gnu.org; Thu, 27 Jun 2019 09:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hgUiw-0000sp-Ar for bug-guix@gnu.org; Thu, 27 Jun 2019 09:46:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87d0izlere.fsf@gmail.com> (Chris Marusich's message of "Wed, 26 Jun 2019 23:32:37 -0700") 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" To: Chris Marusich Cc: 36335@debbugs.gnu.org Hi Chris, Chris Marusich skribis: > Ludovic Court=C3=A8s writes: > >> Guix System doesn=E2=80=99t use ACLs at all. >> >> However, the udev rule for kvm sets it up like this: >> >> crw-rw---- 1 root kvm 10, 232 Jun 24 08:38 /dev/kvm >> >> and the build users are part of the =E2=80=98kvm=E2=80=99 group. I pers= onally arrange >> to have my user account in that group too. > > It's good to know that the "kvm" group is the right way to grant > permissions. However, if Guix System doesn't use ACLs, then why do some > of my device files have ACLs on them, such as the video device file? > > $ getfacl /dev/video0=20 > getfacl: Removing leading '/' from absolute path names > # file: dev/video0 > # owner: root > # group: video > user::rw- > user:marusich:rw- > group::rw- > mask::rw- > other::--- Good question, I see the same thing here. I suspected a udev rule but =E2=80=98grep=E2=80=99 didn=E2=80=99t find any = that explicitly does that, and there=E2=80=99s no code in eudev that fiddles with ACLs either, a= nd nothing obvious in devtmpfs.c in Linux. So=E2=80=A6 it=E2=80=99s a mystery. Ludo=E2=80=99.