Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2003 13:54:39 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        William Michael Grim <wgrim@siue.edu>
Cc:        hackers@freebsd.org
Subject:   RE: pciconf -lv - /dev/pci error
Message-ID:  <XFMail.20031231135439.jhb@FreeBSD.org>
In-Reply-To: <Pine.SO4.4.05.10312311139360.26797-100000@cougar.isg.siue.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org>  <><  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 <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20031231135439.jhb>