From e139021d9bba88852a9d4a6883f45272b9b052d9 Mon Sep 17 00:00:00 2001 From: djm Date: Thu, 3 Oct 2002 01:54:35 +0000 Subject: [PATCH] - (djm) OpenBSD CVS Sync - markus@cvs.openbsd.org 2002/10/01 20:34:12 [ssh-agent.c] allow root to access the agent, since there is no protection from root. --- ChangeLog | 6 ++++++ ssh-agent.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a9725f7e..88a9930b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +20021003 + - (djm) OpenBSD CVS Sync + - markus@cvs.openbsd.org 2002/10/01 20:34:12 + [ssh-agent.c] + allow root to access the agent, since there is no protection from root. + 20020930 - (djm) Tidy contrib/, add Makefile for GNOME passphrase dialogs, tweak README diff --git a/ssh-agent.c b/ssh-agent.c index 77958cca..cca720ee 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -35,7 +35,7 @@ #include "includes.h" #include "openbsd-compat/sys-queue.h" -RCSID("$OpenBSD: ssh-agent.c,v 1.104 2002/09/12 19:11:52 stevesk Exp $"); +RCSID("$OpenBSD: ssh-agent.c,v 1.105 2002/10/01 20:34:12 markus Exp $"); #include #include @@ -833,7 +833,7 @@ after_select(fd_set *readset, fd_set *writeset) close(sock); break; } - if (getuid() != euid) { + if ((euid != 0) && (getuid() != euid)) { error("uid mismatch: " "peer euid %u != uid %u", (u_int) euid, (u_int) getuid()); -- 2.45.2