pciconf -lv - /dev/pci error

Dimitry Andric dimitry at andric.com
Wed Dec 31 11:12:53 PST 2003


On 2003-12-31 at 19:01:06 Robert Watson wrote:

>> superuser.  I received this error:
>> 
>> [root at snow 09:12:42 root]# pciconf -lv
>> pciconf: /dev/pci: Operation not permitted

> pciconf -lv appears to cause pciconf to open /dev/pci writable:

>    731 pciconf  CALL  open(0x8049a55,0x2,0)
>    731 pciconf  NAMI  "/dev/pci"
>    731 pciconf  RET   open -1 errno 13 Permission denied

> And, of course, it's not writable by non-root.

Didn't the original poster have a problem when he actually was root?
Of course I agree that pciconf should only open the device r/w if
strictly necessary, but I was just thinking his problem lay elsewhere.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20031231/a124cd56/attachment.bin


More information about the freebsd-hackers mailing list