From owner-cvs-sys Tue Feb 18 19:51:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA28726 for cvs-sys-outgoing; Tue, 18 Feb 1997 19:51:39 -0800 (PST) Received: (from davidg@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA28693; Tue, 18 Feb 1997 19:51:36 -0800 (PST) Date: Tue, 18 Feb 1997 19:51:36 -0800 (PST) From: David Greenman Message-Id: <199702190351.TAA28693@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern kern_exec.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk davidg 97/02/18 19:51:35 Modified: sys/kern kern_exec.c Log: Fix from PR #2757: execve() clears the P_SUGID process flag in execve() if the binary executed does not have suid or sgid permission bits set. This also happens when the effective uid is different from the real uid or the effective gid is different from the real gid. Under these circumstances, the process still has set id privileges and the P_SUGID flag should not be cleared. Submitted by: Tor Egge Revision Changes Path 1.51 +3 -1 src/sys/kern/kern_exec.c