Remeber when I ranted about RH 6.0...
Christoph Doerbeck A242369
cdoerbec at cso.fmr.com
Thu Jul 29 17:05:36 EDT 1999
Derek Martin wrote:
> On Thu, 29 Jul 1999, Christoph Doerbeck A242369 wrote:
>
> >
> > If someone can answer this: xterm on SUN is not setuid, what changes
> > the permissions on /devices/pseudo/* when xterm opens a new pseudo device?
> >
> > - Christoph
>
> This one I'm not so sure of, but I think it's the tty driver in the
> kernel. With Unix98 pty's, when one wants to assign a pseudo tty, one
> would open /dev/ptmx and I believe the tty driver sets up a pty with the
> appropriate ownership and permissions.
>
Gordon & and I have spent the last 15 minutes conferencing, truss'ing and
reading a plethora of man pages.
xterm calls grantpt() which execve("/usr/lib/pt_chmod" ... )
If you look, /usr/lib/pt_chmod is setuid. Mystery solved!!!
The key to unlock this whole mess was to run
truss -f xterm > /tmp/xterm.out 2>&1
and then vi /tmp/xterm.out and sift through the rubble...
- Christoph
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list