Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 668478 - PCI sysfs rom file needs owner write access
PCI sysfs rom file needs owner write access
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel (Show other bugs)
6.0
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Alex Williamson
Boris Ranto
:
Depends On:
Blocks: 580954
  Show dependency treegraph
 
Reported: 2011-01-10 10:59 EST by Alex Williamson
Modified: 2013-01-09 18:28 EST (History)
3 users (show)

See Also:
Fixed In Version: kernel-2.6.32-112.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-05-23 16:35:34 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0542 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 6.1 kernel security, bug fix and enhancement update 2011-05-19 07:58:07 EDT

  None (edit)
Description Alex Williamson 2011-01-10 10:59:08 EST
Description of problem:
The PCI sysfs rom file is mode 0400, but it's usage requires writing 1/0 to enable/disable the rom around reads.  This causes problems for KVM device assignment, which wants to allow a de-privileged qemu instance to open the file R/W to extract the contents.  libvirt gives qemu ownership of the file, but the mode is wrong for the required usage.

Version-Release number of selected component (if applicable):
kernel-2.6.32-71.4.1.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Give a normal user ownership of the pci sysfs file (/sys/bus/pci/devices/ssss:bb:dd.f/rom)
2. Try to read the rom contents (echo 1 >$ROMFILE; cat $ROMFILE)
3. 
  
Actual results:
cannot read

Expected results:
owner of the file is able to access contents per API

Additional info:
Comment 1 RHEL Product and Program Management 2011-01-12 05:31:08 EST
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.
Comment 2 Aristeu Rozanski 2011-02-03 10:40:01 EST
Patch(es) available on kernel-2.6.32-112.el6
Comment 6 errata-xmlrpc 2011-05-23 16:35:34 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2011-0542.html

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