kib af9bfba938 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
..
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-06-10 02:30:09 +00:00
2017-11-30 20:33:45 +00:00
2018-01-05 08:29:32 +00:00
2018-06-06 18:52:33 +00:00
2018-05-28 09:41:44 +00:00
2017-12-28 05:34:04 +00:00
2018-01-02 16:50:57 +00:00
2017-10-29 08:17:03 +00:00
2017-10-31 00:07:04 +00:00
2018-05-23 09:46:21 +00:00
2018-02-23 17:20:53 +00:00
2018-05-19 20:57:22 +00:00
2017-10-31 00:07:04 +00:00
2018-06-13 09:17:04 +00:00
2018-06-17 17:31:16 +00:00
2018-03-17 12:59:55 +00:00
2018-05-11 00:01:43 +00:00
2018-03-19 05:49:26 +00:00
2018-05-11 00:01:43 +00:00
2018-02-08 14:53:34 +00:00
2017-10-31 00:07:04 +00:00
2018-06-15 17:44:21 +00:00
2018-06-15 17:44:21 +00:00
2018-07-24 20:20:17 +00:00