[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.198 and 1.199

version 1.198, 2009/12/29 04:23:43 version 1.199, 2009/12/30 06:58:50
Line 452  socket_listener_cb(kauth_cred_t cred, ka
Line 452  socket_listener_cb(kauth_cred_t cred, ka
         case KAUTH_REQ_NETWORK_SOCKET_DROP: {          case KAUTH_REQ_NETWORK_SOCKET_DROP: {
                 /* Normal users can only drop their own connections. */                  /* Normal users can only drop their own connections. */
                 struct socket *so = (struct socket *)arg1;                  struct socket *so = (struct socket *)arg1;
                 uid_t sockuid = so->so_uidinfo->ui_uid;  
   
                 if (sockuid == kauth_cred_getuid(cred) ||                  if (proc_uidmatch(cred, so->so_cred))
                     sockuid == kauth_cred_geteuid(cred))  
                         result = KAUTH_RESULT_ALLOW;                          result = KAUTH_RESULT_ALLOW;
   
                 break;                  break;

Legend:
Removed from v.1.198  
changed lines
  Added in v.1.199

CVSweb <webmaster@jp.NetBSD.org>