freebsd-ports/security/openssh-portable/files/patch-ssh-agent.c
Marcus Alves Grando 5ef0f821ec - Update to 4.4p1.
- Disable temporary HPN patch until HPN release new version.
- Fix rc.d script path in sshd.8
- Add FreeBSD-${PKGNAME} in SSH_VERSION and SSH_RELEASE like src does.
- Sync patches with src.

Security:	CVE-2006-4924, CVE-2006-5051
2006-10-01 02:15:00 +00:00

10 lines
288 B
C

--- ssh-agent.c.orig Fri Sep 1 02:38:37 2006
+++ ssh-agent.c Sat Sep 30 18:30:32 2006
@@ -1036,6 +1036,7 @@
/* drop */
setegid(getgid());
setgid(getgid());
+ setuid(geteuid());
#if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE)
/* Disable ptrace on Linux without sgid bit */