Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Aug 2006 20:38:58 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105357 for review
Message-ID:  <200608302038.k7UKcwP7023582@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105357

Change 105357 by millert@millert_g4tower on 2006/08/30 20:38:19

	Use kauth_cred_get() and proc_ucred() instead of peeking
	inside struct proc directly.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_xxx.c#2 edit
.. //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/nfs/nfs_syscalls.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/kern/kern_xxx.c#2 (text+ko) ====

@@ -101,7 +101,7 @@
 #ifdef MAC
 	if (error)
 		return (error);
-	error = mac_check_system_reboot(p->p_ucred, uap->opt);
+	error = mac_check_system_reboot(kauth_cred_get(), uap->opt);
 #endif
 	if (!error) {
 		SET(p->p_flag, P_REBOOT);	/* No more signals for this proc */

==== //depot/projects/trustedbsd/sedarwin8/darwin/xnu/bsd/nfs/nfs_syscalls.c#2 (text+ko) ====

@@ -432,7 +432,7 @@
 	if(error)
 		return (error);
 #ifdef MAC
-	error = mac_check_system_nfsd(p->p_ucred);
+	error = mac_check_system_nfsd(proc_ucred(p));
 	if (error)
 		return (error);
 #endif



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