Bug 686 - sshd dies by non-root account session
Summary: sshd dies by non-root account session
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 3.7.1p1
Hardware: MIPS IRIX
: P3 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-19 12:04 AEST by DOHI, Yukitada
Modified: 2003-10-01 12:25 AEST (History)
1 user (show)

See Also:


Attachments
patch for sshd v3.7.1p1 under IRIX Audit environment (795 bytes, patch)
2003-09-19 12:10 AEST, DOHI, Yukitada
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.