also sprach Sam Vilain <[EMAIL PROTECTED]> [2007.06.27.0220 +0200]: > Don't try all that silly stuff with pty ownership. That's not > even the correct way to figure out the current process' terminal! > Just look in wtmp. probably the easiest way to do this is to call > `who am i` > > Then you'll also cover situations not mentioned yet, like a remote > xterm.
Fair enough, the remote xterm is not covered, but molly-guard promises to guard SSH sessions, and remote xterms technically aren't SSH sessions. That's not to say that I would not be happy to implement your suggestions. Could you please elaborate? How do I use wtmp to determine whether I'm local or remote? In fact, if you could send a patch or some mockup code, I'd appreciate it. -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems
signature.asc
Description: Digital signature (GPG/PGP)