Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2003 10:06:45 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        arch@freebsd.org
Subject:   Re: make /dev/pci really readable
Message-ID:  <20030616170645.GI73854@funkthat.com>
In-Reply-To: <20030616193932.X27844@gamplex.bde.org>
References:  <20030616074122.GF73854@funkthat.com> <20030616193932.X27844@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote this message on Mon, Jun 16, 2003 at 19:42 +1000:
> On Mon, 16 Jun 2003, John-Mark Gurney wrote:
> 
> > 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.
> 
> IIRC, it is like it is because reading it may have side effects (and
> thus isn't really just reading).  If it honored the permissions then
> it should have mode 600 so that normal users can't run pciconf -l :-].

Now if we were reading the pci registers with -r, then yes, but -l just
copys the data from pci_devinfo.  If we wanted to make -r readable, we'd
have to clamp the registers passed in, and make sure that all platforms
didn't trap on PCI register reads (a patch for sparc should be going in
soon).

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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