Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 May 2002 19:38:39 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12239 for review
Message-ID:  <200206010238.g512cdc50441@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206010238.g512cdc50441>