PERFORCE change 86420 for review
Todd Miller
millert at FreeBSD.org
Mon Nov 7 15:29:28 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=86420
Change 86420 by millert at millert_ibook on 2005/11/07 15:29:26
Don't try to deref curproc if it is NULL
Affected files ...
.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/avc/avc.c#7 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/avc/avc.c#7 (text+ko) ====
@@ -555,9 +555,10 @@
struct av_decision *avd, int result, struct avc_audit_data *a)
{
#ifdef __APPLE__
- struct proc *curproc = current_proc();
+ struct proc *tsk = current_proc();
+#else
+ struct proc *tsk = curproc;
#endif
- struct proc *tsk = curproc;
access_vector_t denied, audited;
denied = requested & ~avd->allowed;
@@ -608,11 +609,10 @@
struct vnode *vp = a->u.fs.vp;
struct vattr va;
#ifdef __APPLE__
- struct proc *curproc = current_proc();
- if (/*VOP_ISLOCKED(vp) &&*/
+ if (tsk && /*VOP_ISLOCKED(vp) &&*/
!VOP_GETATTR(vp, &va,
- curproc->p_ucred,
- curproc)) {
+ tsk->p_ucred,
+ tsk)) {
#else
if (VOP_ISLOCKED(vp, curthread) &&
!VOP_GETATTR(vp, &va,
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