From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 11:12:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCA3016A4CE; Wed, 31 Dec 2003 11:12:53 -0800 (PST) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A36343D5E; Wed, 31 Dec 2003 11:12:49 -0800 (PST) (envelope-from dimitry@andric.com) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id F354322827; Wed, 31 Dec 2003 20:12:46 +0100 (CET) Date: Wed, 31 Dec 2003 20:12:43 +0100 From: Dimitry Andric X-Mailer: The Bat! (v2.03 Beta/25) Business X-Priority: 3 (Normal) Message-ID: <554656239.20031231201243@andric.com> To: Robert Watson In-Reply-To: References: MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------EA1282E38C8A0D9" cc: hackers@freebsd.org cc: William Michael Grim Subject: Re: pciconf -lv - /dev/pci error X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 19:12:53 -0000 ------------EA1282E38C8A0D9 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable On 2003-12-31 at 19:01:06 Robert Watson wrote: >> superuser. I received this error: >>=20 >> [root@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. ------------EA1282E38C8A0D9 Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.2.3 (MingW32) iD8DBQE/8x+qsF6jCi4glqMRAprWAKDpeFgLRf0CBinb5YeOuNo6TusfigCguNnV wUl1s7dQswmyIk4q1h9upAk= =JC7R -----END PGP MESSAGE----- ------------EA1282E38C8A0D9--