/dev/kqemu is root-only - there should be a qemu group

Bug #135067 reported by Stefano Rivera
2
Affects Status Importance Assigned to Milestone
kqemu (Debian)
Fix Released
Unknown
kqemu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

/dev/kqemu has unusable permissions. There should be a seperate group created for qemu use? and the main user added to it. kvm does this.

This bug has existed as long as ubuntu has had qemu support.

I'm reporting it from gutsy/amd64. Aug 2007.

ii kqemu-common 1.3.0~pre11-5 Common files for the QEMU Accelerator module
ii kqemu-modules-2.6.22-10-generic 1.3.0~pre11-5+2.6.22-10.30 kqemu modules for Linux (kernel 2.6.22-10-generic).
ii kqemu-source 1.3.0~pre11-5 Source for the QEMU Accelerator module
ii udev 113-0ubuntu7 rule-based device node and kernel event manager

$ ls -alhF /dev/kqemu
crw-rw---- 1 root root 10, 63 2007-08-27 15:50 /dev/kqemu

OTOH, kvm creates a kvm group, qemu should do that, too.
$ ls /dev/kvm -alhF
crw-rw---- 1 root kvm 10, 232 2007-08-27 06:54 /dev/kvm

Related branches

Changed in kqemu:
status: Unknown → New
Revision history for this message
Jiahua Huang (huangjiahua) wrote :

Confirm it.

I use this file /etc/udev/rules.d/60-kqemu.rules
content: KERNEL=="kqemu", NAME="%k", MODE="0666"

$ ls -alhF /dev/kqemu
crw-rw-rw- 1 root root 10, 61 2008-05-08 20:08 /dev/kqemu

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

I use the following in my setup:

/etc/udev/rules.d/60-kqemu.rules
KERNEL=="kqemu", NAME="%k", GROUP="libvirt", MODE="0660"

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kqemu - 1.3.0~pre11-8ubuntu1

---------------
kqemu (1.3.0~pre11-8ubuntu1) intrepid; urgency=low

  * Adding DKMS support (LP: #127610, #249493, #107342)
    - debian/dkms.conf.in:
      + Include a skeleton that is used for making a DKMSified
        kqemu-source.
    - debian/control:
      + Adjust kqemu-source depends.
    - debian/rules:
      + Adjust where kqemu-source installs to for DKMS support.
    - debian/kqemu-source.{postinst,prerm}:
      + Include for DKMS support.

  * Adding user group support (LP: #159340, #135067)
    - Include 60-kqemu.rules udev rules
    - debian/kqemu-source.init:
      + Add init script to load kernel module upon boot.
    - debian/rules:
      + Install 60-kqemu.rules
      + Install init script
    - debian/kqemu-source.{postinst,prerm}:
      + Create a kqemu group.

  * Modify Maintainer value to match the DebianMaintainerField
    specification.

 -- Mario Limonciello <email address hidden> Sun, 27 Jul 2008 08:41:00 -0500

Changed in kqemu:
status: New → Fix Released
Changed in kqemu (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.