Date: Sat, 16 Apr 2005 18:33:13 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mac.c Message-ID: <200504161833.j3GIXDwm088076@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2005-04-16 18:33:13 UTC FreeBSD src repository Modified files: sys/kern kern_mac.c Log: In mac_get_fd(), remove unconditional acquisition of Giant around copying of the socket label to thread-local storage, and replace it with conditional acquisition based on debug.mpsafenet. Acquire the socket lock around the copy operation. In mac_set_fd(), replace the unconditional acquisition of Giant with the conditional acquisition of Giant based on debug.mpsafenet. The socket lock is acquired in mac_socket_label_set() so doesn't have to be acquired here. Obtained from: TrustedBSD Project Sponsored by: SPAWAR, SPARTA Revision Changes Path 1.116 +7 -9 src/sys/kern/kern_mac.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504161833.j3GIXDwm088076>