Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2007 09:06:14 GMT
From:      Zhouyi ZHOU <zhouzhouyi@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 121204 for review
Message-ID:  <200706080906.l5896EVe021842@repoman.freebsd.org>

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

Change 121204 by zhouzhouyi@zhouzhouyi_mactest on 2007/06/08 09:05:50

	/dev/mactestpipe node for mandatory access control test.
	This is "stealed" from sys/security/audit/audit_pipe.c by a little more than a string replace :-)

Affected files ...

.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/conf/files#3 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/security/mac_test/mac_test.c#3 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/security/mac_test/mac_test_pipe.c#1 add
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/security/mac_test/mac_test_private.h#1 add

Differences ...

==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/conf/files#3 (text+ko) ====

@@ -2023,7 +2023,8 @@
 security/mac_seeotheruids/mac_seeotheruids.c optional mac_seeotheruids
 security/mac_stub/mac_stub.c	optional mac_stub
 security/mac_test/mac_test.c	optional mac_test
-security/mac_test/mac_test_if.c	optional mac_test
+security/mac_test/mac_test_if.c optional mac_test
+security/mac_test/mac_test_pipe.c optional mac_test
 ufs/ffs/ffs_alloc.c		optional ffs
 ufs/ffs/ffs_balloc.c		optional ffs
 ufs/ffs/ffs_inode.c		optional ffs

==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/zhouzhouyi_mactest_soc/sys/security/mac_test/mac_test.c#3 (text+ko) ====

@@ -69,6 +69,7 @@
 #include <net/if_var.h>
 
 #include <security/mac/mac_policy.h>
+#include <security/mac_test/mac_test_private.h>
 
 SYSCTL_DECL(_security_mac);
 
@@ -156,7 +157,8 @@
 static void
 mac_test_init_bpfdesc_label(struct label *label)
 {
-
+	mactest_pipe_submit("mac_test_init_bpfdesc_label\n", 
+		strlen("mac_test_init_bpfdesc_label\n"));
 	LABEL_INIT(label, MAGIC_BPF);
 	COUNTER_INC(init_bpfdesc_label);
 }
@@ -279,6 +281,8 @@
 mac_test_init_socket_label(struct label *label, int flag)
 {
 
+	mactest_pipe_submit("mac_test_init_socket_label\n", 
+		strlen("mac_test_init_socket_label\n"));
 	if (flag & M_WAITOK)
 		WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
 		    "mac_test_init_socket_label() at %s:%d", __FILE__,



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