Date: Tue, 11 Dec 2001 08:00:06 -0800 (PST) From: Brooks Davis <brooks@one-eyed-alien.net> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/32677: pciconf -l opens /dev/pci for O_RDWR Message-ID: <200112111600.fBBG06S59877@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/32677; it has been noted by GNATS. From: Brooks Davis <brooks@one-eyed-alien.net> To: Seth <seth@bromberger.com> Cc: FreeBSD-gnats-submit@freebsd.org, msmith@freebsd.org Subject: Re: kern/32677: pciconf -l opens /dev/pci for O_RDWR Date: Tue, 11 Dec 2001 07:59:37 -0800 On Tue, Dec 11, 2001 at 07:13:07AM -0500, Seth wrote: > Mike/Brooks, > > Thanks for the update & explanation. I guess this means that stock pciconf > will remain unusable on systems where securelevel > 0 until the Alpha > code can be tweaked? > > If I were to patch my own code to open O_RDONLY (I'm on Intel/AMD), do you > anticipate that I would experience any problems such as you describe below? I tried it before looking at the kernel code and it actually doesn't work due to the way the kernel is configured. You would need to do that (it's quite easy) and then modify pci_ioctl() at sys/pci/pci.c:752 moving the "if (!(flag & FWRITE))" check into PCIOCWRITE. -- Brooks -- Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112111600.fBBG06S59877>