Shudong Zhou wrote:
> prtconf binary has sgid bit set and prtconf -vp has always worked
> for me as a non-root user.
>   

setgid sys, right.  well this means that any other process which might
want to look at the device properties on your system either has to parse
prtconf output (ugly) or has to be setgid sys (or run as root) too.

I'd far, far rather have /dev/openprom be world-readable.

> There has been talks about caching all prom properties in kernel
> memory, so prtconf -vp doesn't have to go to the prom. It might
> happen some day.
>   

Heck, I think these prom properties should just be decorations on the
normal in kernel device tree.  There are probably some prom tree nodes
which need special handling (/chosen?) but there could be a special tree
for those, too.

    -- Garrett
> Shudong
>   


-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to