Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about Calling packet_close from cleanup_exitfunction

1 view
Skip to first unread message

Mahoda Ratnayaka

unread,
Jul 27, 2016, 6:28:58 PM7/27/16
to
Hi,

Just out of interest, is it okay to call packet_close from cleanup_exit
function in sshd.c. For a project that I'm working on I need to clear the
sensitive information held on the server side before exiting.

Thanks,
Mahoda
_______________________________________________
openssh-unix-dev mailing list
openssh-...@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

Damien Miller

unread,
Jul 27, 2016, 7:09:22 PM7/27/16
to
On Thu, 28 Jul 2016, Mahoda Ratnayaka wrote:

> Hi,
>
> Just out of interest, is it okay to call packet_close from cleanup_exit
> function in sshd.c. For a project that I'm working on I need to clear the
> sensitive information held on the server side before exiting.

It looks like it will be safe if the packet code has been properly
initialised AND whatever you are doing doesn't involve threads AND
you're not calling it from anything like a signal handler.

-d
0 new messages