Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Nov 2002 17:24:34 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Markus Friedl <markus@openbsd.org>
Cc:        Alexander Leidinger <Alexander@Leidinger.net>, current@freebsd.org, openssh@openbsd.org
Subject:   Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)
Message-ID:  <xzp4rawx9vh.fsf@flood.ping.uio.no>
In-Reply-To: <20021105142536.GA8326@folly> (Markus Friedl's message of "Tue, 5 Nov 2002 15:25:36 %2B0100")
References:  <20021103204902.3c6b3705.Alexander@Leidinger.net> <20021104092329.GA1677@folly> <xzpd6pkxgip.fsf@flood.ping.uio.no> <20021105142536.GA8326@folly>

next in thread | previous in thread | raw e-mail | index | archive | help
Markus Friedl <markus@openbsd.org> writes:
> but shouldn't it do something like
>         seteuid(getuid());
>         setuid(getuid());
> executing ssh-agent?

It should.  It currently uses popen(3), which doesn't.  It needs
popen(3)-like functionality because it reads ssh-agent's output in
order to set $SSH_AGENT_PID and $SSH_AUTH_SOCK.  Rewriting it to use
pipe(2) + fork(2) + execve(2) so it can frob the UID after forking but
before exec'ing is possible and desirable but not trivial.  I'll see
what I can do later this week.

In any case, this doesn't seem to be an OpenSSH bug.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp4rawx9vh.fsf>