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

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

Diff for /src/sys/netinet6/raw_ip6.c between version 1.75 and 1.75.8.2

version 1.75, 2006/01/21 00:15:37 version 1.75.8.2, 2006/03/10 15:20:54
Line 76  __KERNEL_RCSID(0, "$NetBSD$");
Line 76  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/errno.h>  #include <sys/errno.h>
 #include <sys/systm.h>  #include <sys/systm.h>
 #include <sys/proc.h>  #include <sys/proc.h>
   #include <sys/kauth.h>
   
 #include <net/if.h>  #include <net/if.h>
 #include <net/route.h>  #include <net/route.h>
Line 400  rip6_output(m, va_alist)
Line 401  rip6_output(m, va_alist)
         in6p = sotoin6pcb(so);          in6p = sotoin6pcb(so);
   
         priv = 0;          priv = 0;
         if (curproc && !suser(curproc->p_ucred, &curproc->p_acflag))          if (curproc && !kauth_authorize_generic(curproc->p_cred,
                                             KAUTH_GENERIC_ISSUSER,
                                             &curproc->p_acflag))
                 priv = 1;                  priv = 1;
   
         dst = &dstsock->sin6_addr;          dst = &dstsock->sin6_addr;
Line 615  rip6_usrreq(so, req, m, nam, control, l)
Line 618  rip6_usrreq(so, req, m, nam, control, l)
   
         priv = 0;          priv = 0;
         p = l ? l->l_proc : NULL;          p = l ? l->l_proc : NULL;
         if (p && !suser(p->p_ucred, &p->p_acflag))          if (p && !kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, &p->p_acflag))
                 priv++;                  priv++;
   
         if (req == PRU_CONTROL)          if (req == PRU_CONTROL)

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.75.8.2

CVSweb <webmaster@jp.NetBSD.org>