From owner-cvs-all@FreeBSD.ORG Wed Dec 17 06:55:39 2003 Return-Path: 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 9450016A4CE; Wed, 17 Dec 2003 06:55:39 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A9EE43D62; Wed, 17 Dec 2003 06:55:12 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBHEtC0B020015; Wed, 17 Dec 2003 06:55:12 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBHEtC20020014; Wed, 17 Dec 2003 06:55:12 -0800 (PST) (envelope-from rwatson) Message-Id: <200312171455.hBHEtC20020014@repoman.freebsd.org> From: Robert Watson Date: Wed, 17 Dec 2003 06:55:12 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet tcp_subr.c src/sys/security/mac mac_net.c src/sys/security/mac_biba mac_biba.c src/sys/security/mac_lomac mac_lomac.c src/sys/security/mac_mls mac_mls.c src/sys/security/mac_stub mac_stub.c ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 14:55:39 -0000 rwatson 2003/12/17 06:55:12 PST FreeBSD src repository Modified files: sys/netinet tcp_subr.c sys/security/mac mac_net.c sys/security/mac_biba mac_biba.c sys/security/mac_lomac mac_lomac.c sys/security/mac_mls mac_mls.c sys/security/mac_stub mac_stub.c sys/security/mac_test mac_test.c sys/sys mac.h mac_policy.h Log: Switch TCP over to using the inpcb label when responding in timed wait, rather than the socket label. This avoids reaching up to the socket layer during connection close, which requires locking changes. To do this, introduce MAC Framework entry point mac_create_mbuf_from_inpcb(), which is called from tcp_twrespond() instead of calling mac_create_mbuf_from_socket() or mac_create_mbuf_netlayer(). Introduce MAC Policy entry point mpo_create_mbuf_from_inpcb(), and implementations for various policies, which generally just copy label data from the inpcb to the mbuf. Assert the inpcb lock in the entry point since we require consistency for the inpcb label reference. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Revision Changes Path 1.170 +1 -4 src/sys/netinet/tcp_subr.c 1.111 +11 -0 src/sys/security/mac/mac_net.c 1.73 +13 -0 src/sys/security/mac_biba/mac_biba.c 1.26 +13 -0 src/sys/security/mac_lomac/mac_lomac.c 1.60 +13 -0 src/sys/security/mac_mls/mac_mls.c 1.37 +8 -0 src/sys/security/mac_stub/mac_stub.c 1.40 +10 -0 src/sys/security/mac_test/mac_test.c 1.53 +1 -0 src/sys/sys/mac.h 1.47 +3 -0 src/sys/sys/mac_policy.h