Bug 500472

Summary: QEMU driver should run all QEMU VMs as non-root system account
Product: [Fedora] Fedora Reporter: Daniel Berrange <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   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-30 08:18:57 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 346151, 497341    
Bug Blocks: 498969    

Description Daniel Berrange 2009-05-12 16:19:50 EDT
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):

How reproducible:

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

Expected results:
QEMU does not run as root

Additional info:
Comment 1 Mark McLoughlin 2009-05-21 16:40:44 EDT
See also:

Comment 2 Daniel Berrange 2009-07-30 08:18:57 EDT
THis is in rawhide, including mgmt of PCI & USB device permissions