Date: Sat, 5 Oct 2002 14:23:48 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mac.c uipc_socket.c src/sys/security/mac_biba mac_biba.c src/sys/security/mac_mls mac_mls.c src/sys/security/mac_none mac_none.c src/sys/security/mac_test mac_test.c src/sys/sys mac.h ... Message-ID: <200210052123.g95LNmmu092922@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2002/10/05 14:23:48 PDT Modified files: sys/kern kern_mac.c uipc_socket.c sys/security/mac_biba mac_biba.c sys/security/mac_mls mac_mls.c sys/security/mac_none mac_none.c sys/security/mac_test mac_test.c sys/sys mac.h mac_policy.h Log: Modify label allocation semantics for sockets: pass in soalloc's malloc flags so that we can call malloc with M_NOWAIT if necessary, avoiding potential sleeps while holding mutexes in the TCP syncache code. Similar to the existing support for mbuf label allocation: if we can't allocate all the necessary label store in each policy, we back out the label allocation and fail the socket creation. Sync from MAC tree. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Revision Changes Path 1.39 +69 -13 src/sys/kern/kern_mac.c 1.132 +11 -3 src/sys/kern/uipc_socket.c 1.16 +2 -2 src/sys/security/mac_biba/mac_biba.c 1.14 +2 -2 src/sys/security/mac_mls/mac_mls.c 1.11 +2 -2 src/sys/security/mac_none/mac_none.c 1.10 +6 -4 src/sys/security/mac_test/mac_test.c 1.12 +2 -2 src/sys/sys/mac.h 1.14 +2 -2 src/sys/sys/mac_policy.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210052123.g95LNmmu092922>