PERFORCE change 110122 for review

Todd Miller millert at FreeBSD.org
Thu Nov 16 19:14:25 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=110122

Change 110122 by millert at millert_macbook on 2006/11/16 19:12:38

	Hide sebsd_prev label namespace unless explicitly asked for.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#44 edit
.. //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.h#6 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.c#44 (text+ko) ====

@@ -3043,7 +3043,7 @@
 	u_int32_t sid;
 
 	tsec = SLOT(label);
-	if (strcmp("sebsd_prev", element_name) == 0)
+	if (strcmp("?sebsd_prev", element_name) == 0)
 		sid = tsec->osid;
 	else if (strcmp("sebsd", element_name) == 0)
 		sid = tsec->sid;

==== //depot/projects/trustedbsd/sedarwin8/policies/sedarwin/sedarwin/sebsd.h#6 (text+ko) ====

@@ -41,7 +41,7 @@
 #define	SEBSD_ID_STRING			"sebsd"
 #define	SEBSD_MAC_EXTATTR_NAME		"sebsd"
 #define	SEBSD_MAC_EXTATTR_NAMESPACE	EXTATTR_NAMESPACE_SYSTEM
-#define	SEBSD_MAC_LABEL_NAMESPACES	"sebsd","sebsd_prev"
+#define	SEBSD_MAC_LABEL_NAMESPACES	"sebsd","?sebsd_prev"
 #define	SEBSD_MAC_LABEL_NAME_COUNT	2
 
 extern int sebsd_find_data(const char *key, void **valp, size_t *sizep);


More information about the trustedbsd-cvs mailing list