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

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

Diff for /src/sys/netatalk/at_control.c between version 1.34 and 1.35

version 1.34, 2011/10/19 01:50:27 version 1.35, 2014/07/01 05:49:18
Line 72  static void aa_clean(void);
Line 72  static void aa_clean(void);
                          (a)->sat_addr.s_node == (b)->sat_addr.s_node )                           (a)->sat_addr.s_node == (b)->sat_addr.s_node )
   
 int  int
 at_control(u_long cmd, void * data, struct ifnet *ifp, struct lwp *l)  at_control(u_long cmd, void *data, struct ifnet *ifp)
 {  {
         struct ifreq   *ifr = (struct ifreq *) data;          struct ifreq   *ifr = (struct ifreq *) data;
         const struct sockaddr_at *csat;          const struct sockaddr_at *csat;
Line 125  at_control(u_long cmd, void * data, stru
Line 125  at_control(u_long cmd, void * data, stru
                  * If we are not superuser, then we don't get to do these                   * If we are not superuser, then we don't get to do these
                  * ops.                   * ops.
                  */                   */
                 if (l && kauth_authorize_network(l->l_cred,                  if (kauth_authorize_network(curlwp->l_cred,
                     KAUTH_NETWORK_INTERFACE,                      KAUTH_NETWORK_INTERFACE,
                     KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, (void *)cmd,                      KAUTH_REQ_NETWORK_INTERFACE_SETPRIV, ifp, (void *)cmd,
                     NULL) != 0)                      NULL) != 0)

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

CVSweb <webmaster@jp.NetBSD.org>