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

Subversion リポジトリの参照

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

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

revision 2701 by kumaneko, Tue Jun 30 02:03:03 2009 UTC revision 2702 by kumaneko, Tue Jun 30 03:49:41 2009 UTC
# Line 792  static struct kmem_cache *ccs_cachep; Line 792  static struct kmem_cache *ccs_cachep;
792  static kmem_cache_t *ccs_cachep;  static kmem_cache_t *ccs_cachep;
793  #endif  #endif
794    
795    struct srcu_struct ccs_ss;
796    
797  /**  /**
798   * ccs_realpath_init - Initialize realpath related code.   * ccs_realpath_init - Initialize realpath related code.
799   *   *
# Line 806  static int __init ccs_realpath_init(void Line 808  static int __init ccs_realpath_init(void
808          /* Constraint for "struct ccs_execve_entry"->tmp users. */          /* Constraint for "struct ccs_execve_entry"->tmp users. */
809          if (CCS_MAX_PATHNAME_LEN > CCS_EXEC_TMPSIZE)          if (CCS_MAX_PATHNAME_LEN > CCS_EXEC_TMPSIZE)
810                  panic("Bad size.");                  panic("Bad size.");
811            if (init_srcu_struct(&ccs_ss))
812                    panic("Out of memory.");
813  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
814          ccs_cachep = kmem_cache_create("ccs_cache",          ccs_cachep = kmem_cache_create("ccs_cache",
815                                         sizeof(struct ccs_cache_entry),                                         sizeof(struct ccs_cache_entry),

Legend:
Removed from v.2701  
changed lines
  Added in v.2702

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