[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.200.4.1 and 1.201

version 1.200.4.1, 2011/03/05 20:55:24 version 1.201, 2010/10/14 03:07:51
Line 98  __KERNEL_RCSID(0, "$NetBSD$");
Line 98  __KERNEL_RCSID(0, "$NetBSD$");
 #include <compat/sys/socket.h>  #include <compat/sys/socket.h>
 #endif  #endif
   
 #include <uvm/uvm_extern.h>  #include <uvm/uvm.h>
 #include <uvm/uvm_loan.h>  
 #include <uvm/uvm_page.h>  
   
 MALLOC_DEFINE(M_SOOPTS, "soopts", "socket options");  MALLOC_DEFINE(M_SOOPTS, "soopts", "socket options");
 MALLOC_DEFINE(M_SONAME, "soname", "socket name");  MALLOC_DEFINE(M_SONAME, "soname", "socket name");
Line 463  socket_listener_cb(kauth_cred_t cred, ka
Line 461  socket_listener_cb(kauth_cred_t cred, ka
   
         case KAUTH_REQ_NETWORK_SOCKET_OPEN:          case KAUTH_REQ_NETWORK_SOCKET_OPEN:
                 /* We allow "raw" routing/bluetooth sockets to anyone. */                  /* We allow "raw" routing/bluetooth sockets to anyone. */
                 if ((u_long)arg1 == PF_ROUTE || (u_long)arg1 == PF_OROUTE                  if ((u_long)arg1 == PF_ROUTE || (u_long)arg1 == PF_BLUETOOTH)
                     || (u_long)arg1 == PF_BLUETOOTH) {  
                         result = KAUTH_RESULT_ALLOW;                          result = KAUTH_RESULT_ALLOW;
                 } else {                  else {
                         /* Privileged, let secmodel handle this. */                          /* Privileged, let secmodel handle this. */
                         if ((u_long)arg2 == SOCK_RAW)                          if ((u_long)arg2 == SOCK_RAW)
                                 break;                                  break;

Legend:
Removed from v.1.200.4.1  
changed lines
  Added in v.1.201

CVSweb <webmaster@jp.NetBSD.org>