| Summary: | sshd displays illegal usernames through setproctitle() | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Pavel Kankovsky <peak> | ||||
| Component: | sshd | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | 3.8.1p1 | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Attachments: |
|
||||||
|
Description
Pavel Kankovsky
2004-07-21 07:22:12 AEST
Created attachment 690 [details]
this patch fixes the bug
I'm ok with the first two. Makes sense to key off of ->valid since everything
else does.
I'm leary of the change to do:
setproctitle("%s [pam]", sshpam_authctxt && sshpam_authctxt->valid ?
pam_user : "unknown");
Mainly because I don't see the (xx && yy ? zz : pp) abuse normally and as a
result I'd be skiddy until someone else on the project agrees.
I'd also rather see it as:
if ( ( xx ) && ( yy ) )
setproc[..]
else
setproc[..]
could be I've seen too many (xx & yy) mistakes in OpenBSD audits.
Fix applied - thanks. |