]> git.ipfire.org Git - thirdparty/pciutils.git/commit
fbsd-device: Use PCIOCGETCONF and PCIOCGETBAR when /dev/pci fd is readonly.
authorImre Vadász <ivadasz@google.com>
Fri, 14 Jul 2017 21:05:53 +0000 (23:05 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 17 Nov 2017 12:57:00 +0000 (13:57 +0100)
commit0f3d0ca73ecedaba180bf4607bb57fb8abe6d405
tree1aa662a217fb2c382ce2c298e94a0d52bede60e5
parent7663958f7515a26d08ec6a5b22ce0de931d2c570
fbsd-device: Use PCIOCGETCONF and PCIOCGETBAR when /dev/pci fd is readonly.

This way we can at least fulfill some of the common requests without root
privileges. This allows various applications (for example the google chrome
webbrowser) to successfully probe the list of PCI devices without needing
read-write access to the /dev/pci device file.

Signed-off-by: Imre Vadász <imrevdsz@gmail.com>
lib/fbsd-device.c