PERFORCE change 42551 for review

Robert Watson rwatson at FreeBSD.org
Sun Nov 16 16:43:28 GMT 2003


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

Change 42551 by rwatson at rwatson_tislabs on 2003/11/16 08:42:49

	Implement mac_copy_{mbuf,pipe,vnode}_label() for mac_stub.c and
	mac_test.c.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_stub/mac_stub.c#13 edit
.. //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#122 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/security/mac_stub/mac_stub.c#13 (text+ko) ====

@@ -134,6 +134,12 @@
 
 }
 
+static void
+stub_copy_label(struct label *src, struct label *dest)
+{
+
+}
+
 static int
 stub_externalize_label(struct label *label, char *element_name,
     struct sbuf *sb, int *claimed)
@@ -1320,6 +1326,9 @@
 	.mpo_destroy_socket_label = stub_destroy_label,
 	.mpo_destroy_socket_peer_label = stub_destroy_label,
 	.mpo_destroy_vnode_label = stub_destroy_label,
+	.mpo_copy_mbuf_label = stub_copy_label,
+	.mpo_copy_pipe_label = stub_copy_label,
+	.mpo_copy_vnode_label = stub_copy_label,
 	.mpo_externalize_cred_label = stub_externalize_label,
 	.mpo_externalize_ifnet_label = stub_externalize_label,
 	.mpo_externalize_pipe_label = stub_externalize_label,

==== //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#122 (text+ko) ====

@@ -747,6 +747,30 @@
 	}
 }
 
+static void
+mac_test_copy_mbuf_label(struct label *src, struct label *dest)
+{
+
+	ASSERT_MBUF_LABEL(src);
+	ASSERT_MBUF_LABEL(dest);
+}
+
+static void
+mac_test_copy_pipe_label(struct label *src, struct label *dest)
+{
+
+	ASSERT_PIPE_LABEL(src);
+	ASSERT_PIPE_LABEL(dest);
+}
+
+static void
+mac_test_copy_vnode_label(struct label *src, struct label *dest)
+{
+
+	ASSERT_VNODE_LABEL(src);
+	ASSERT_VNODE_LABEL(dest);
+}
+
 static int
 mac_test_externalize_label(struct label *label, char *element_name,
     struct sbuf *sb, int *claimed)
@@ -2293,6 +2317,9 @@
 	.mpo_destroy_socket_label = mac_test_destroy_socket_label,
 	.mpo_destroy_socket_peer_label = mac_test_destroy_socket_peer_label,
 	.mpo_destroy_vnode_label = mac_test_destroy_vnode_label,
+	.mpo_copy_mbuf_label = mac_test_copy_mbuf_label,
+	.mpo_copy_pipe_label = mac_test_copy_pipe_label,
+	.mpo_copy_vnode_label = mac_test_copy_vnode_label,
 	.mpo_externalize_cred_label = mac_test_externalize_label,
 	.mpo_externalize_ifnet_label = mac_test_externalize_label,
 	.mpo_externalize_pipe_label = mac_test_externalize_label,
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list