On Thu, Mar 14, 2013 at 10:28:23PM +0100, Jakub Wilk wrote: > * Serge Hallyn <serge.hal...@ubuntu.com>, 2013-03-14, 14:58: > >qemu-system-common installs a udev rules file which sets /dev/kvm > >group to 'kvm'. Its postinst then adds a kvm group. However udev > >reads the new rules file as soon as it sees it, sees that group > >kvm doesn't exist, and ignores that part of the rule (until > >reboot, udev restart, or the rule is re-added, of course).
> >To fix this the kvm group should be created during preinst before > >the udev rules file is unpacked. This requires adding adduser to > >the Pre-Depends. vorlon warned me that any new pre-depends should > >be discussed here first, so I'm emailing to ask - is this ok? Is > >there a better way? > IIRC, src:sane-backends uses setfacl(1) instead of changing the > group. Not sure if that counts as "better". setfacl or chgrp, it still needs to be handled in the udev rules; so preferably, those udev rules would be the *only* place the device perms need to be handled, and that means making sure the rules are valid at unpack time. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
signature.asc
Description: Digital signature