1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00
freebsd/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 Remove dead code (comma is either 0 or 1 for sure, no need to test). 2018-01-05 07:29:02 +00:00
err.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
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