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: Mon, 24 Jun 2019 21:54:54 +0200 Message-ID: <87v9wu4v3l.fsf@gnu.org> References: <87sgs1c4r0.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]:54319) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hfV4N-0002jk-FW for bug-guix@gnu.org; Mon, 24 Jun 2019 15:56:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hfV4M-00065u-9L for bug-guix@gnu.org; Mon, 24 Jun 2019 15:56:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hfV4M-00064m-53 for bug-guix@gnu.org; Mon, 24 Jun 2019 15:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hfV4L-0006wD-Ug for bug-guix@gnu.org; Mon, 24 Jun 2019 15:56:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87sgs1c4r0.fsf@gmail.com> (Chris Marusich's message of "Sat, 22 Jun 2019 21:20:03 -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: > I was trying to run some VMs via "guix system vm", and I noticed that > I didn't have permission to use KVM. This issue can be worked around by > running qemu as root, or by adding yourself to the "kvm" group. > However, I found it curious that the /dev/kvm device didn't have ACLs > granting me access: > > $ getfacl /dev/kvm > getfacl: Removing leading '/' from absolute path names > # file: dev/kvm > # owner: root > # group: kvm > user::rw- > group::rw- > other::--- > > > Is it expected that on Guix System, /dev/kvm does not by default receive > ACLs granting me access? 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 persona= lly arrange to have my user account in that group too. Thanks, Ludo=E2=80=99.