mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
5a664ca10f
Kernel default mode is 0600, but distributions change it to group kvm, mode either 0660 (e.g. Debian) or 0666 (e.g. Fedora). Both approaches have valid reasons (a stricter mode limits exposure to bugs in the kvm subsystem, a looser mode makes libvirt and other virtualization mechanisms work out of the box for unprivileged users over ssh). In Fedora the qemu package carries the relevant rule, but it's nicer to have it in systemd, so that the permissions are not dependent on the qemu package being installed. Use of packaged qemu binaries is not required to make use of /dev/kvm, e.g. it's possible to use a self-compiled qemu or some alternative. https://bugzilla.redhat.com/show_bug.cgi?id=1431876 To accomodate both approaches, add a rule to set the mode in 50-udev-default.rules, but allow the mode to be overridden with a --with-dev-kvm-mode configure rule. The default is 0660, as the (slightly) more secure option.
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# The superuser
|
|
u root 0 "Super User" /root
|
|
|
|
# The nobody user for NFS file systems
|
|
u nobody 65534 "Nobody" -
|
|
|
|
# Administrator group: can *see* more than normal users
|
|
g adm - - -
|
|
|
|
# Administrator group: can *do* more than normal users
|
|
g wheel - - -
|
|
|
|
# Access to certain kernel and userspace facilities
|
|
g kmem - - -
|
|
g tty @TTY_GID@ - -
|
|
g utmp - - -
|
|
|
|
# Hardware access groups
|
|
g audio - - -
|
|
g cdrom - - -
|
|
g dialout - - -
|
|
g disk - - -
|
|
g input - - -
|
|
g lp - - -
|
|
g kvm - - -
|
|
g tape - - -
|
|
g video - - -
|
|
|
|
# Default group for normal users
|
|
g users - - -
|