Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2006 19:21:28 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 108506 for review
Message-ID:  <200610261921.k9QJLSO0077568@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=108506

Change 108506 by millert@millert_macbook on 2006/10/26 19:20:57

	It is no longer necessary for /etc/mac.conf to be present.
	The default is now to use all labels from loaded modules.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/etc/Makefile#2 edit
.. //depot/projects/trustedbsd/sedarwin8/darwin/libmac/mac.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/etc/Makefile#2 (text+ko) ====

@@ -1,6 +1,6 @@
 include ../../Makeconfig
 
-ETCFILES= mac.conf
+ETCFILES= mac.conf.sample
 INSTALL= install
 
 all:

==== //depot/projects/trustedbsd/sedarwin8/darwin/libmac/mac.c#2 (text+ko) ====

@@ -188,8 +188,13 @@
 	else
 		filename = MAC_CONFFILE;
 	file = fopen(filename, "r");
-	if (file == NULL)
+	if (file == NULL) {
+		mac_add_type("file", "*");
+		mac_add_type("ifnet", "*");
+		mac_add_type("packet", "*");
+		mac_add_type("process", "*");
 		return (0);
+	}
 
 	while (fgets(line, LINE_MAX, file)) {
 		char *arg, *comment, *parse, *statement;



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