From owner-p4-projects@FreeBSD.ORG Sat Jun 21 20:57:13 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4C14137B404; Sat, 21 Jun 2003 20:57:13 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0057237B401 for ; Sat, 21 Jun 2003 20:57:13 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9754443F85 for ; Sat, 21 Jun 2003 20:57:12 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5M3vC0U023728 for ; Sat, 21 Jun 2003 20:57:12 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5M3vC4Z023725 for perforce@freebsd.org; Sat, 21 Jun 2003 20:57:12 -0700 (PDT) Date: Sat, 21 Jun 2003 20:57:12 -0700 (PDT) Message-Id: <200306220357.h5M3vC4Z023725@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Subject: PERFORCE change 33501 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2003 03:57:14 -0000 http://perforce.freebsd.org/chv.cgi?CH=33501 Change 33501 by rwatson@rwatson_powerbook on 2003/06/21 20:56:26 Add labels to struct socket. Affected files ... .. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/socketvar.h#2 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/socketvar.h#2 (text+ko) ==== @@ -61,6 +61,7 @@ #define _SYS_SOCKETVAR_H_ #include +#include /* for struct label */ #include /* for TAILQ macros */ #include /* for struct selinfo */ #include @@ -172,6 +173,8 @@ void (*so_upcall) __P((struct socket *so, caddr_t arg, int waitf)); caddr_t so_upcallarg; /* Arg for above */ uid_t so_uid; /* who opened the socket */ + struct label so_label; /* MAC label for socket */ + struct label so_peerlabel; /* cached MAC label for socket peer */ /* NB: generation count must not be first; easiest to make it last. */ so_gen_t so_gencnt; /* generation count */ #ifndef __APPLE__