Bug 500472 - QEMU driver should run all QEMU VMs as non-root system account
Summary: QEMU driver should run all QEMU VMs as non-root system account
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 346151 497341
Blocks: F12VirtTarget
TreeView+ depends on / blocked
 
Reported: 2009-05-12 20:19 UTC by Daniel Berrangé
Modified: 2009-07-30 12:18 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-07-30 12:18:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Berrangé 2009-05-12 20:19:50 UTC
Description of problem:
Currently all QEMU instances for qemu:///system are run as root. This is bad for security. We need to switch to run them under a dedicated system account eg 'kvm'.  We already create TAP devices from libvirt & pass the open FD, so networking won't be a problem. This will entail having libvirt chown the disk devices prior to starting a VM, but again not a hard problem.

Likely some other fun with PCI & USB device passthrough, but we'll figure that out as we encounter it.... 

Version-Release number of selected component (if applicable):
0.6.2

How reproducible:
Always

Steps to Reproduce:
1. Rnu a QEMU instance under qemu:///system
2.
3.
  
Actual results:
QEMU runs as root

Expected results:
QEMU does not run as root

Additional info:

Comment 1 Mark McLoughlin 2009-05-21 20:40:44 UTC
See also:

  https://fedoraproject.org/wiki/Features/VirtPrivileges

Comment 2 Daniel Berrangé 2009-07-30 12:18:57 UTC
THis is in rawhide, including mgmt of PCI & USB device permissions


Note You need to log in before you can comment on or make changes to this bug.