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

Subversion リポジトリの参照

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

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

revision 2282 by kumaneko, Thu Mar 19 04:46:42 2009 UTC revision 2308 by kumaneko, Tue Mar 24 09:08:56 2009 UTC
# Line 5  Line 5 
5   *   *
6   * Copyright (C) 2005-2009  NTT DATA CORPORATION   * Copyright (C) 2005-2009  NTT DATA CORPORATION
7   *   *
8   * Version: 1.6.7-rc   2009/03/18   * Version: 1.6.7-rc   2009/03/24
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 937  static bool ccs_get_argv0(struct ccs_exe Line 937  static bool ccs_get_argv0(struct ccs_exe
937   out:   out:
938          return false;          return false;
939  }  }
940                            
941  /**  /**
942   * ccs_find_next_domain - Find a domain.   * ccs_find_next_domain - Find a domain.
943   *   *
# Line 960  static int ccs_find_next_domain(struct c Line 960  static int ccs_find_next_domain(struct c
960          struct ccs_path_info sn; /* symlink name */          struct ccs_path_info sn; /* symlink name */
961          struct ccs_path_info ln; /* last name */          struct ccs_path_info ln; /* last name */
962          int retval;          int retval;
   
         {  
                 /*  
                  * Built-in initializers. This is needed because policies are  
                  * not loaded until starting /sbin/init.  
                  */  
                 static bool first = true;  
                 if (first) {  
                         ccs_update_domain_initializer_entry(NULL,  
                                                             "/sbin/hotplug",  
                                                             false, false);  
                         ccs_update_domain_initializer_entry(NULL,  
                                                             "/sbin/modprobe",  
                                                             false, false);  
                         first = false;  
                 }  
         }  
   
963   retry:   retry:
964          current->ccs_flags = ccs_flags;          current->ccs_flags = ccs_flags;
965          r->cond = NULL;          r->cond = NULL;

Legend:
Removed from v.2282  
changed lines
  Added in v.2308

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