PERFORCE change 18822 for review

Robert Watson rwatson at freebsd.org
Mon Oct 7 01:31:22 GMT 2002


http://people.freebsd.org/~peter/p4db/chv.cgi?CH=18822

Change 18822 by rwatson at rwatson_tislabs on 2002/10/06 18:30:21

	Enforcement check for socket send/receive.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#302 edit

Differences ...

==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#302 (text+ko) ====

@@ -3324,6 +3324,9 @@
 {
 	int error;
 
+	if (!mac_enforce_socket)
+		return (0);
+
 	MAC_CHECK(check_socket_receive, cred, so, &so->so_label);
 
 	return (error);
@@ -3350,6 +3353,9 @@
 {
 	int error;
 
+	if (!mac_enforce_socket)
+		return (0);
+
 	MAC_CHECK(check_socket_send, cred, so, &so->so_label);
 
 	return (error);
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