system: Make /dev/kvm 660.

* gnu/services/base.scm (kvm-udev-rule): Change /dev/kvm mode to 0660 as a
  followup to the resolution of <http://bugs.gnu.org/18994>.
This commit is contained in:
Ludovic Courtès 2015-07-15 16:16:43 +02:00
parent 43c33047da
commit 64720891ae

View file

@ -739,11 +739,11 @@ (define rules.d
(call-with-output-file
(string-append rules.d "/90-kvm.rules")
(lambda (port)
;; FIXME: As a workaround for
;; <http://bugs.gnu.org/18994>, make /dev/kvm 666
;; instead of 660.
;; Build users are part of the "kvm" group, so we
;; can fearlessly make /dev/kvm 660 (see
;; <http://bugs.gnu.org/18994>, for background.)
(display "\
KERNEL==\"kvm\", GROUP=\"kvm\", MODE=\"0666\"\n" port))))
KERNEL==\"kvm\", GROUP=\"kvm\", MODE=\"0660\"\n" port))))
#:modules '((guix build utils))))
(define* (udev-service #:key (udev eudev) (rules '()))