From owner-cvs-all Fri Mar 22 11:57:58 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6732A37B400; Fri, 22 Mar 2002 11:57:42 -0800 (PST) Received: (from rwatson@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2MJvgS80358; Fri, 22 Mar 2002 11:57:42 -0800 (PST) (envelope-from rwatson) Message-Id: <200203221957.g2MJvgS80358@freefall.freebsd.org> From: Robert Watson Date: Fri, 22 Mar 2002 11:57:42 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_prot.c src/sys/netinet raw_ip.c tcp_subr.c udp_usrreq.c src/sys/sys systm.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/03/22 11:57:42 PST Modified files: sys/kern kern_prot.c sys/netinet raw_ip.c tcp_subr.c udp_usrreq.c sys/sys systm.h Log: Merge from TrustedBSD MAC branch: Move the network code from using cr_cansee() to check whether a socket is visible to a requesting credential to using a new function, cr_canseesocket(), which accepts a subject credential and object socket. Implement cr_canseesocket() so that it does a prison check, a uid check, and add a comment where shortly a MAC hook will go. This will allow MAC policies to seperately instrument the visibility of sockets from the visibility of processes. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Revision Changes Path 1.144 +23 -0 src/sys/kern/kern_prot.c 1.91 +2 -2 src/sys/netinet/raw_ip.c 1.125 +4 -4 src/sys/netinet/tcp_subr.c 1.105 +3 -3 src/sys/netinet/udp_usrreq.c 1.165 +2 -0 src/sys/sys/systm.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message