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

Subversion リポジトリの参照

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

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

revision 115 by kumaneko, Tue Mar 6 12:27:09 2007 UTC revision 120 by kumaneko, Thu Mar 8 13:55:18 2007 UTC
# Line 124  int DelDomainACL(struct acl_info *ptr) Line 124  int DelDomainACL(struct acl_info *ptr)
124          return 0;          return 0;
125  }  }
126    
127    int TooManyDomainACL(struct domain_info * const domain) {
128            unsigned int count = 0;
129            struct acl_info *ptr;
130            for (ptr = domain->first_acl_ptr; ptr; ptr = ptr->next) {
131                    if (!ptr->is_deleted) count++;
132            }
133            /* If there are so many entries, don't append if accept mode. */
134            if (count < CheckCCSFlags(CCS_TOMOYO_MAX_ACCEPT_ENTRY)) return 0;
135            if (!domain->quota_warned) {
136                    printk("TOMOYO-WARNING: Domain '%s' has so many ACLs to hold. Stopped auto-append mode.\n", domain->domainname->name);
137                    domain->quota_warned = 1;
138            }
139            return 1;
140    }
141    
142    
143  /*************************  DOMAIN INITIALIZER HANDLER  *************************/  /*************************  DOMAIN INITIALIZER HANDLER  *************************/
144    
145  static DOMAIN_INITIALIZER_ENTRY *domain_initializer_list = NULL;  static DOMAIN_INITIALIZER_ENTRY *domain_initializer_list = NULL;

Legend:
Removed from v.115  
changed lines
  Added in v.120

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