Bug 686

Summary: sshd dies by non-root account session
Product: Portable OpenSSH Reporter: DOHI, Yukitada <yuki>
Component: sshdAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal CC: yuki
Priority: P3    
Version: 3.7.1p1   
Hardware: MIPS   
OS: IRIX   
Attachments:
Description Flags
patch for sshd v3.7.1p1 under IRIX Audit environment none

Description DOHI, Yukitada 2003-09-19 12:04:23 AEST
A sshd built by IRIX v6.5.19m with c99 (MIPSPro v7.4) dies when non-root
user account establishes a session with openssh client. This does not
occurs when root establishes a session.

I found a problem in uidswap.c, and made a patch to fix this problem.
Comment 1 DOHI, Yukitada 2003-09-19 12:10:43 AEST
Created attachment 430 [details]
patch for sshd v3.7.1p1 under IRIX Audit environment

Apply this patch as follows;

% gzcat openssh-3.7.1p1.tar.gz | tar xf -
% cd openssh-3.7.1p1
% patch < somewhere/patch.withIRIXAudit

Maybe some code cleaning up would be required, but this can correct
the problem temporally.
Comment 2 Darren Tucker 2003-09-19 12:17:11 AEST
Do the #defines in bug #659 solve it without this patch?
Comment 3 DOHI, Yukitada 2003-09-19 12:56:08 AEST
I could fix my problem without appling the patch for bug #659.
(Sorry, I didnot refer bug #659 report during fixing this problem.)

I found sshd's UID is changed by setsatid() in openbsd-compat/port-irix.c,
the stored old UID must be changed by setsatid() again.

So, my answer is "Yes, but I know nothing about bug #659".
Comment 4 Darren Tucker 2003-09-22 13:15:23 AEST
Please try tomorrow's snapshot.  The patch from bug #659 has been applied, so if
the snapshot works as-is, please close the bug.
Comment 5 DOHI, Yukitada 2003-10-01 12:21:51 AEST
I confirmed no problems with 3.7.1p2.