Bug 983945 - /dev/vhost-net only accessible by root
Summary: /dev/vhost-net only accessible by root
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-12 11:13 UTC by Julian Stecklina
Modified: 2013-10-31 21:08 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-31 21:08:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Julian Stecklina 2013-07-12 11:13:03 UTC
/dev/vhost-net, which is necessary for decent network performance in qemu/kvm, is only accessible by root. By default it is owned by root and gets 0600 rights.

I would expect /dev/vhost-net to be owned by group kvm or qemu and group-read/writable.

Adding a udev rule such as
SUBSYSTEM=="misc", KERNEL=="vhost-net", GROUP="kvm", MODE="0660"
does not work for me.

Comment 1 Cole Robinson 2013-09-09 13:39:28 UTC
Michael, is this safe to do? /dev/kvm is already non-root

Comment 2 Michael S. Tsirkin 2013-09-10 15:12:58 UTC
I think root-only is a better default. What exactly happens when you add the udev rule?

Comment 3 Cole Robinson 2013-10-31 21:08:22 UTC
No response, closing as INSUFFICIENT_DATA (and sounds like enabling for non-root isn't recommended anyways)


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