From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 31 10:54:43 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 2E86316A4CF for ; Wed, 31 Dec 2003 10:54:43 -0800 (PST) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCB9A43D54 for ; Wed, 31 Dec 2003 10:54:39 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 18762 invoked from network); 31 Dec 2003 18:54:39 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 31 Dec 2003 18:54:39 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id hBVIsWM0093080; Wed, 31 Dec 2003 13:54:33 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 31 Dec 2003 13:54:39 -0500 (EST) From: John Baldwin To: William Michael Grim X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: hackers@freebsd.org 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 18:54:43 -0000 On 31-Dec-2003 William Michael Grim wrote: > Good call; I do in fact have securelevel enabled. I would like to keep it > enabled if possible. Is there any way to get to /dev/pci while in > securelevel 2, or do I have to temporarily drop the securelevel through > sysctl? > > Many thanks in advance. Currently there is no way to get to /dev/pci with securelevel raised though there is a PR about it I believe that might have some patches and comments about how to make it work. I don't think you can drop the securelevel via sysctl. > William Michael Grim > Student, Southern Illinois University at Edwardsville > Unix Network Administrator, SIUE, Computer Science dept. > Phone: (217) 341-6552 > Email: wgrim@siue.edu > > > > On Wed, 31 Dec 2003, John Baldwin wrote: > >> >> On 31-Dec-2003 William Michael Grim wrote: >> > Hey! >> > >> > I have 5.1-RELEASE installed on my system, and I've never needed to do a >> > "pciconf -lv" to probe the system before. However, I tried doing it >> > earlier today after logging in through SSH and doing "su -" to become >> > superuser. I received this error: >> > >> > [root@snow 09:12:42 root]# pciconf -lv >> > pciconf: /dev/pci: Operation not permitted >> > >> > [root@snow 09:15:41 root]# ls -l /dev/pci >> > crw-r--r-- 1 root wheel 251, 0 Nov 2 05:09 /dev/pci >> > >> > So, as you can see, the permissions are correct. Perhaps I don't have >> > something compiled into my kernel? I can attach a dmesg and kernel config >> > if it's necessary. >> > >> > Thanks in advance. >> >> Do you have securelevel raised? >> >> -- >> >> John Baldwin <>< http://www.FreeBSD.org/~jhb/ >> "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> > -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/