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

Subversion リポジトリの参照

Diff of /trunk/1.7.x/ccs-patch/security/ccsecurity/memory.c

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

revision 2948 by kumaneko, Mon Aug 24 11:59:18 2009 UTC revision 2952 by kumaneko, Tue Aug 25 06:59:01 2009 UTC
# Line 281  void ccs_put_name(const struct ccs_path_ Line 281  void ccs_put_name(const struct ccs_path_
281          }          }
282  }  }
283    
 /* Lock for GC. */  
 struct srcu_struct ccs_ss;  
   
284  /**  /**
285   * ccs_realpath_init - Initialize realpath related code.   * ccs_realpath_init - Initialize realpath related code.
286   *   *
# Line 292  struct srcu_struct ccs_ss; Line 289  struct srcu_struct ccs_ss;
289  static int __init ccs_realpath_init(void)  static int __init ccs_realpath_init(void)
290  {  {
291          int i;          int i;
         if (init_srcu_struct(&ccs_ss))  
                 panic("Out of memory.");  
292          for (i = 0; i < CCS_MAX_HASH; i++)          for (i = 0; i < CCS_MAX_HASH; i++)
293                  INIT_LIST_HEAD(&ccs_name_list[i]);                  INIT_LIST_HEAD(&ccs_name_list[i]);
294          INIT_LIST_HEAD(&ccs_kernel_domain.acl_info_list);          INIT_LIST_HEAD(&ccs_kernel_domain.acl_info_list);

Legend:
Removed from v.2948  
changed lines
  Added in v.2952

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