Date: Thu, 15 Aug 2002 08:56:16 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16029 for review Message-ID: <200208151556.g7FFuGSD053867@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16029 Change 16029 by rwatson@rwatson_tislabs on 2002/08/15 08:55:28 Assert process locks in the MAC access control check entry points targetting processes. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#243 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#243 (text+ko) ==== @@ -2576,6 +2576,8 @@ if (!mac_enforce_process) return (0); + PROC_LOCK_ASSERT(proc, MA_OWNED); + MAC_CHECK(check_proc_debug, cred, proc); return (error); @@ -2589,6 +2591,8 @@ if (!mac_enforce_process) return (0); + PROC_LOCK_ASSERT(proc, MA_OWNED); + MAC_CHECK(check_proc_sched, cred, proc); return (error); @@ -2602,6 +2606,8 @@ if (!mac_enforce_process) return (0); + PROC_LOCK_ASSERT(proc, MA_OWNED); + MAC_CHECK(check_proc_signal, cred, proc, signum); return (error); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208151556.g7FFuGSD053867>