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

Subversion リポジトリの参照

Diff of /trunk/1.6.x/ccs-patch/fs/tomoyo_network.c

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

revision 1507 by kumaneko, Tue Sep 2 06:45:13 2008 UTC revision 1561 by kumaneko, Tue Sep 9 04:29:07 2008 UTC
# Line 5  Line 5 
5   *   *
6   * Copyright (C) 2005-2008  NTT DATA CORPORATION   * Copyright (C) 2005-2008  NTT DATA CORPORATION
7   *   *
8   * Version: 1.6.4   2008/09/03   * Version: 1.6.5-pre   2008/09/09
9   *   *
10   * This file is applicable to both 2.4.30 and 2.6.11 and later.   * This file is applicable to both 2.4.30 and 2.6.11 and later.
11   * See README.ccs for ChangeLog.   * See README.ccs for ChangeLog.
# Line 592  static int check_network_entry(const boo Line 592  static int check_network_entry(const boo
592          char buf[64];          char buf[64];
593          if (!mode)          if (!mode)
594                  return 0;                  return 0;
595    retry:
596          list1_for_each_entry(ptr, &domain->acl_info_list, list) {          list1_for_each_entry(ptr, &domain->acl_info_list, list) {
597                  struct ip_network_acl_record *acl;                  struct ip_network_acl_record *acl;
598                  if (ccs_acl_type2(ptr) != TYPE_IP_NETWORK_ACL)                  if (ccs_acl_type2(ptr) != TYPE_IP_NETWORK_ACL)
# Line 631  static int check_network_entry(const boo Line 632  static int check_network_entry(const boo
632                  printk(KERN_WARNING "TOMOYO-%s: %s to %s %u denied for %s\n",                  printk(KERN_WARNING "TOMOYO-%s: %s to %s %u denied for %s\n",
633                         ccs_get_msg(is_enforce), keyword, buf, port,                         ccs_get_msg(is_enforce), keyword, buf, port,
634                         ccs_get_last_name(domain));                         ccs_get_last_name(domain));
635          if (is_enforce)          if (is_enforce) {
636                  return ccs_check_supervisor(NULL, KEYWORD_ALLOW_NETWORK "%s "                  int error = ccs_check_supervisor(NULL, KEYWORD_ALLOW_NETWORK
637                                              "%s %u\n", keyword, buf, port);                                                   "%s %s %u\n", keyword, buf,
638                                                     port);
639                    if (error == 1)
640                            goto retry;
641                    return error;
642            }
643          if (mode == 1 && ccs_check_domain_quota(domain))          if (mode == 1 && ccs_check_domain_quota(domain))
644                  update_network_entry(operation, is_ipv6 ?                  update_network_entry(operation, is_ipv6 ?
645                                       IP_RECORD_TYPE_IPv6 : IP_RECORD_TYPE_IPv4,                                       IP_RECORD_TYPE_IPv6 : IP_RECORD_TYPE_IPv4,

Legend:
Removed from v.1507  
changed lines
  Added in v.1561

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