PERFORCE change 43731 for review

Chris Vance cvance at FreeBSD.org
Wed Dec 10 16:50:50 GMT 2003


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

Change 43731 by cvance at cvance_g4 on 2003/12/10 08:49:49

	Fix bug: interpvnodelabel may be NULL.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/security/mac_test/mac_test.c#127 edit
.. //depot/projects/trustedbsd/sebsd/sys/security/mac_test/mac_test.c#11 edit

Differences ...

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

@@ -1250,7 +1250,8 @@
 	ASSERT_CRED_LABEL(old->cr_label);
 	ASSERT_CRED_LABEL(new->cr_label);
 	ASSERT_VNODE_LABEL(filelabel);
-	ASSERT_VNODE_LABEL(interpvnodelabel);
+	if (interpvnodelabel != NULL)
+		ASSERT_VNODE_LABEL(interpvnodelabel);
 	if (execlabel != NULL) {
 		ASSERT_CRED_LABEL(execlabel);
 	}

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

@@ -1250,7 +1250,8 @@
 	ASSERT_CRED_LABEL(old->cr_label);
 	ASSERT_CRED_LABEL(new->cr_label);
 	ASSERT_VNODE_LABEL(filelabel);
-	ASSERT_VNODE_LABEL(interpvnodelabel);
+	if (interpvnodelabel != NULL)
+		ASSERT_VNODE_LABEL(interpvnodelabel);
 	if (execlabel != NULL) {
 		ASSERT_CRED_LABEL(execlabel);
 	}
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