オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.8.x/ccs-patch/security/ccsecurity/network.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2944 by kumaneko, Mon Aug 24 05:00:52 2009 UTC revision 2958 by kumaneko, Wed Aug 26 09:43:56 2009 UTC
# Line 169  static int ccs_network_entry2(const bool Line 169  static int ccs_network_entry2(const bool
169          const u32 ip = ntohl(*address);          const u32 ip = ntohl(*address);
170          int error;          int error;
171          char buf[64];          char buf[64];
         ccs_assert_read_lock();  
172          if (ccs_init_request_info(&r, NULL,          if (ccs_init_request_info(&r, NULL,
173                                    CCS_MAC_NETWORK_UDP_BIND + operation)                                    CCS_MAC_NETWORK_UDP_BIND + operation)
174              == CCS_MAC_MODE_DISABLED)              == CCS_CONFIG_DISABLED)
175                  return 0;                  return 0;
176          memset(buf, 0, sizeof(buf));          memset(buf, 0, sizeof(buf));
177          if (is_ipv6)          if (is_ipv6)
# Line 226  static int ccs_network_entry2(const bool Line 225  static int ccs_network_entry2(const bool
225                  error = ccs_supervisor(&r, CCS_KEYWORD_ALLOW_NETWORK                  error = ccs_supervisor(&r, CCS_KEYWORD_ALLOW_NETWORK
226                                         "%s %s %u\n", keyword, buf, port);                                         "%s %s %u\n", keyword, buf, port);
227          } while (error == 1);          } while (error == 1);
228          if (r.mode != CCS_MAC_MODE_ENFORCING)          if (r.mode != CCS_CONFIG_ENFORCING)
229                  error = 0;                  error = 0;
230          return error;          return error;
231  }  }

Legend:
Removed from v.2944  
changed lines
  Added in v.2958

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26