PERFORCE change 15643 for review

Robert Watson rwatson at freebsd.org
Wed Aug 7 17:09:23 GMT 2002


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

Change 15643 by rwatson at rwatson_tislabs on 2002/08/07 10:08:52

	Use the cred passed to socreate() to label newly created sockets,
	rather than the one associated with td.  This allows socreate()
	to function on behalf of a no-curthread credential.

Affected files ...

.. //depot/projects/trustedbsd/mac/sys/kern/uipc_socket.c#33 edit

Differences ...

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

@@ -196,7 +196,7 @@
 	so->so_cred = crhold(cred);
 	so->so_proto = prp;
 #ifdef MAC
-	mac_create_socket(td->td_ucred, so);
+	mac_create_socket(cred, so);
 #endif
 	soref(so);
 	error = (*prp->pr_usrreqs->pru_attach)(so, proto, td);
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