Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc



Module Name:    syssrc
Committed By:   thorpej
Date:           Fri Jun 15 17:24:20 UTC 2001

Modified Files:
        syssrc/sys/compat/netbsd32: netbsd32_execve.c
        syssrc/sys/kern: exec_script.c kern_exec.c

Log Message:
In check_exec(), don't bother checking P_TRACED along with
MNT_NOSUID, just check MNT_NOSUID to clear the S{U,G}ID bits
in the attributes for the vnode we're about to exec.

We now check P_TRACED right before we would actually perform
the s{u,g}id function in the exec code.

This closes a race condition between exec of a setuid binary
and ptrace(2).


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/netbsd32/netbsd32_execve.c
cvs rdiff -r1.28 -r1.29 syssrc/sys/kern/exec_script.c
cvs rdiff -r1.140 -r1.141 syssrc/sys/kern/kern_exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index