[BACK]Return to uipc_socket.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/uipc_socket.c between version 1.122 and 1.123

version 1.122, 2006/07/23 22:06:11 version 1.123, 2006/10/02 00:02:04
Line 506  socreate(int dom, struct socket **aso, i
Line 506  socreate(int dom, struct socket **aso, i
 #endif  #endif
         if (l != NULL) {          if (l != NULL) {
                 uid = kauth_cred_geteuid(l->l_cred);                  uid = kauth_cred_geteuid(l->l_cred);
                   kauth_cred_hold(l->l_cred);
                   so->so_cred = l->l_cred;
         } else {          } else {
                 uid = 0;                  uid = 0;
                   so->so_cred = NULL;
         }          }
         so->so_uidinfo = uid_find(uid);          so->so_uidinfo = uid_find(uid);
         error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,          error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,
Line 727  sodisconnect(struct socket *so)
Line 730  sodisconnect(struct socket *so)
                 error = EALREADY;                  error = EALREADY;
                 goto bad;                  goto bad;
         }          }
           if (so->so_cred != NULL)
                   kauth_cred_free(so->so_cred);
         error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT,          error = (*so->so_proto->pr_usrreq)(so, PRU_DISCONNECT,
             (struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0,              (struct mbuf *)0, (struct mbuf *)0, (struct mbuf *)0,
             (struct lwp *)0);              (struct lwp *)0);

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123

CVSweb <webmaster@jp.NetBSD.org>