From owner-p4-projects Fri May 31 19:38:45 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3C13337B404; Fri, 31 May 2002 19:38:40 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6AC1137B403 for ; Fri, 31 May 2002 19:38:39 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g512cdc50441 for perforce@freebsd.org; Fri, 31 May 2002 19:38:39 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Fri, 31 May 2002 19:38:39 -0700 (PDT) Message-Id: <200206010238.g512cdc50441@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 12239 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12239 Change 12239 by rwatson@rwatson_curry on 2002/05/31 19:37:39 Export 'struct label' to userland for the time-being: this is required because userland applications try to interpret structures such as 'struct ucred' (which are kernel-only) without defining _KERNEL. This might fix the build. Affected files ... ... //depot/projects/trustedbsd/mac/sys/sys/mac.h#103 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/sys/mac.h#103 (text+ko) ==== @@ -175,6 +175,12 @@ int __mac_set_proc(struct mac *_mac_p); #else /* _KERNEL */ +#endif /* _KERNEL */ + +/* + * XXX: This shouldn't be exported to userland, but is because of ucred.h + * and various other messes. + */ #define MAC_MAX_POLICIES 8 @@ -186,6 +192,8 @@ } l_perpolicy[MAC_MAX_POLICIES]; }; +#ifdef _KERNEL + /* * Policy flags exported to consumers of MAC APIs. Probably, this shouldn't * be done. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message