PERFORCE change 121204 for review
Zhouyi ZHOU
zhouzhouyi at FreeBSD.org
Fri Jun 8 09:06:15 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=121204
Change 121204 by zhouzhouyi at 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__,
More information about the p4-projects
mailing list