PERFORCE change 105357 for review
Todd Miller
millert at FreeBSD.org
Wed Aug 30 20:44:41 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=105357
Change 105357 by millert at 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
More information about the trustedbsd-cvs
mailing list