performance of pci_device_get_{vendor, device}_name() in X server startup

olafBuddenhagen at olafBuddenhagen at
Sat Jun 26 00:36:22 PDT 2010


On Tue, Jun 22, 2010 at 04:44:50PM +0200, Mark Kettenis wrote:

> I don't think using system(3) would be a good idea, since it has some
> nasty side-effects.

That's how UNIX works. If it has nasty side-effects, then something else
is broken.

> Also, this probably wouldn't work on OpenBSD where we have privilige
> separation, and the execution of scanpci would fail after we drop root
> priviliges.

If you don't have a PCI interface in your system that allows running
scanpci as non-root, than you should install it suid root... I don't see
an issue here.


More information about the xorg-devel mailing list