From owner-freebsd-arch@FreeBSD.ORG Mon Jun 16 14:59:52 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 D6CBB37B401; Mon, 16 Jun 2003 14:59:52 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2E4B43F93; Mon, 16 Jun 2003 14:59:49 -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 h5GMPRMo016160; Mon, 16 Jun 2003 18:25:27 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h5GM0Mjx014626; Mon, 16 Jun 2003 15:00:22 -0700 (PDT) (envelope-from jmg) Date: Mon, 16 Jun 2003 15:00:22 -0700 From: John-Mark Gurney To: Scott Long Message-ID: <20030616220022.GW73854@funkthat.com> Mail-Followup-To: Scott Long , arch@freebsd.org, Robert Watson References: <20030616074122.GF73854@funkthat.com> <20030616194935.GR73854@funkthat.com> <3EEE2B31.4020406@freebsd.org> <20030616213312.GV73854@funkthat.com> <3EEE3BF2.3020809@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EEE3BF2.3020809@freebsd.org> 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 cc: Robert Watson 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: Mon, 16 Jun 2003 21:59:53 -0000 Scott Long wrote this message on Mon, Jun 16, 2003 at 15:51 -0600: > John-Mark Gurney wrote: > >hmmm. are you sure about this? wouldn't it mean that by simply probing > >for a device you could end up locking up the system? > > > > The first 64 bytes in the space is likely safe, from bytes 65-255 it is > entirely vendor specific. ok, agreed.. Dare I ask that we let normal users read the first 64 bytes? and require write permissions to read about 64? :) just kidding.. > I'll not argue your development practices. However, I don't see it as > unreasonable to ask that driver writers who are going to need root > access to do their work anyways (modifying files, compiling kernels > and/or loading modules) also use root to access the pci registers from > userland. everything up to the loading modules I like to do as normal user.. > I seem to remember Linx having a similar feature a few years ago and > naive sysadmins getting into serious trouble by pointing their tape > backups at the /proc/pci directory. :) well, lucky for use /dev/pci doesn't have a write interface.. :) -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."