Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2002 10:09:23 -0700 (PDT)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 15643 for review
Message-ID:  <200208071709.g77H9NxV029358@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=15643

Change 15643 by rwatson@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@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208071709.g77H9NxV029358>