Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
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).
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |