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
1 changed files with 4 additions and 4 deletions

View File

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