From owner-cvs-all Sat Oct 5 14:23:50 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDA4637B401; Sat, 5 Oct 2002 14:23:48 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A67EB43E6E; Sat, 5 Oct 2002 14:23:48 -0700 (PDT) (envelope-from rwatson@FreeBSD.org) Received: from freefall.freebsd.org (rwatson@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g95LNmCo092926; Sat, 5 Oct 2002 14:23:48 -0700 (PDT) (envelope-from rwatson@freefall.freebsd.org) Received: (from rwatson@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g95LNmmu092922; Sat, 5 Oct 2002 14:23:48 -0700 (PDT) Message-Id: <200210052123.g95LNmmu092922@freefall.freebsd.org> From: Robert Watson Date: Sat, 5 Oct 2002 14:23:48 -0700 (PDT) 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 ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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