[BACK]Return to kern_lwp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/kern_lwp.c between version 1.38 and 1.39

version 1.38, 2006/07/20 00:17:10 version 1.39, 2006/07/30 21:58:11
Line 737  lwp_update_creds(struct lwp *l)
Line 737  lwp_update_creds(struct lwp *l)
         if (oc != NULL)          if (oc != NULL)
                 kauth_cred_free(oc);                  kauth_cred_free(oc);
 }  }
   
 /*  
  * Update a process' master copy of credentials from an LWP.  
  *  
  * Called whenever an LWP changes credentials.  
  */  
 void  
 lwp_broadcast_creds(struct lwp *l)  
 {  
         kauth_cred_t oc;  
         struct proc *p;  
   
         p = l->l_proc;  
   
         kauth_cred_hold(l->l_cred);  
         simple_lock(&p->p_lock);  
         oc = p->p_cred;  
         p->p_cred = l->l_cred;  
         simple_unlock(&p->p_lock);  
         kauth_cred_free(oc);  
 }  

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

CVSweb <webmaster@jp.NetBSD.org>