Well, I've done a bit of research on pty. What I would like is to be able to open the slave device to a pty and attach it to my process (maybe I could write a launcher process that starts my process and sets up the pty). But I would like the master device for that pty be attached to by an sshd instance when the user connects, after checking that the master can be opened by that user (or whatever other security checks concerning roles may apply).
>From Rich Teer's book, apparently one cannot open a slave pty without first >opening its master. In fact, all pty examples in that book are processes that >open the master, fork a child and have the child open the slave using a common >inherited file handle. Thus I wonder if my idea is at all possible. I welcome strategy suggestions. Cheers, Doug This message posted from opensolaris.org