From owner-freebsd-arch@FreeBSD.ORG Mon Jun 16 22:08:44 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E357437B401 for ; Mon, 16 Jun 2003 22:08:44 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C4C043FD7 for ; Mon, 16 Jun 2003 22:08:43 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h5H5YMMo011491; Tue, 17 Jun 2003 01:34:23 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h5H595qk021343; Mon, 16 Jun 2003 22:09:05 -0700 (PDT) (envelope-from jmg) Date: Mon, 16 Jun 2003 22:09:05 -0700 From: John-Mark Gurney To: "M. Warner Losh" Message-ID: <20030617050905.GE73854@funkthat.com> Mail-Followup-To: "M. Warner Losh" , arch@freebsd.org References: <20030616074122.GF73854@funkthat.com> <20030616.225216.115910026.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030616.225216.115910026.imp@bsdimp.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: arch@freebsd.org Subject: Re: make /dev/pci really readable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2003 05:08:45 -0000 M. Warner Losh wrote this message on Mon, Jun 16, 2003 at 22:52 -0600: > In message: <20030616074122.GF73854@funkthat.com> > John-Mark Gurney writes: > : Does anyone have an objection to making /dev/pci really honor the > : permissions, and giving normal users (or just group wheel) premission > : to run pciconf -l. Right now the code requires the write bit set for > : any operation. > > Yes. That's too dangerous and will panic a machine. I'm not talking about -r... and anyways, I have fixed part of the problem with unaligned reads/writes which has been posted to this thread already.... > You can get the same information that pciconf -l does by going through > the alternative interface of devinfo. So, I hear you proposing to remove pciconf and the /dev/pci interface? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."