freebsd-skq/usr.sbin/pciconf
Konstantin Belousov 2e62782dac Require write access when mmapping BAR.
This actually makes the rights requirements for accessing PCI config
space and BARs using /dev/pci same.  Since unchanged /dev/pci mode
only allows write open for root, default configuration de-facto limits
the BAR read to root only.  In particular, state-changing reads of the
registers are limited to root.

Discussed with:	se
Suggested and reviewed by:	jhb (kernel part)
Sponsored by:	The FreeBSD Foundation
MFC after:	12 days
Differential revision:	https://reviews.freebsd.org/D16580
2018-08-03 18:35:20 +00:00
..
cap.c
err.c
Makefile
Makefile.depend
pathnames.h
pciconf.8 Add -D option to pciconf(8) to mmap and dump content of the device BAR. 2018-08-01 19:02:05 +00:00
pciconf.c Require write access when mmapping BAR. 2018-08-03 18:35:20 +00:00
pciconf.h