Date: Fri, 01 Dec 2000 13:56:13 -0700 From: Lyndon Nerenberg <lyndon@orthanc.ab.ca> To: hackers@freebsd.org, stable@freebsd.org Subject: PCIOCGETCONF/PCIOCREAD requires write permission? Message-ID: <200012012056.eB1KuDI32343@orthanc.ab.ca>
next in thread | raw e-mail | index | archive | help
[Observed on 4.2-STABLE, but I've redirected replies to the hackers list.] 'pciconf -l' is documented to work for non-priv users, however the first thing the underlying ioctl code (pci_ioctl) does is bail with EPERM if the caller does not have /dev/pci open for write. Is there any reason why the FWRITE test cannot/should not be moved down into the 'case PCIOCWRITE' part of the switch? This would make both PCIOCGETCONF and PCIOCREAD work for readonly access to /dev/pci (which seems to me to be saner behaviour). --lyndon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012012056.eB1KuDI32343>