Bug 500472

Summary: QEMU driver should run all QEMU VMs as non-root system account
Product: [Fedora] Fedora Reporter: Daniel BerrangĂ© <berrange>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: berrange, clalance, crobinso, gczarcinski, itamar, markmc, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-30 12:18:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 346151, 497341    
Bug Blocks: 498969    

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