-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

martin f krafft wrote:
> 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.

This is true, but the term "ssh session" has come to mean "remote terminal
session".  Which is a good thing really.  Also I note that the short
description
reads "protects remote machines from accidental shutdowns/reboots"

> 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.

Sure, I'll send that shortly.

Sam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkaDGJgACgkQ/AZAiGayWEO/ZACeM3CsR9Rxtl3xK0HIzw722Tg4
U4YAoMHwEuQLMhlKKPwJhyRdH4isT7ul
=lJQC
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to