]> git.ipfire.org Git - thirdparty/openssh-portable.git/commit
Don't skip audit before exitting cleanup_exit
authorAntonio Larrosa <alarrosa@suse.com>
Fri, 23 Aug 2024 10:21:06 +0000 (12:21 +0200)
committerDamien Miller <djm@mindrot.org>
Wed, 28 Aug 2024 12:09:46 +0000 (22:09 +1000)
commit05f2b141cfcc60c7cdedf9450d2b9d390c19eaad
treead32f593e8578ff9594ec326401916eb1f1e5563
parent16eaf9d401e70996f89f3f417738a8db421aa959
Don't skip audit before exitting cleanup_exit

This fixes an issue where the SSH_CONNECTION_ABANDON event is not
audited because cleanup_exit overrides the regular _exit too soon and
as a result, failed auth attempts are not logged correctly.

The problem was introduced in 81c1099d22b81ebfd20a334ce986c4f753b0db29
where the code from upstream was merged before the audit_event call when
it should have been merged right before the _exit call in order to honor
the comment that just mentions an override of the exit value.
sshd-session.c