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

Subversion リポジトリの参照

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

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

revision 1780 by kumaneko, Tue Nov 4 05:58:07 2008 UTC revision 1781 by kumaneko, Tue Nov 4 07:19:35 2008 UTC
# Line 1072  static int find_next_domain(struct ccs_r Line 1072  static int find_next_domain(struct ccs_r
1072                          base_filename++;                          base_filename++;
1073                  if (strcmp(base_argv0, base_filename)) {                  if (strcmp(base_argv0, base_filename)) {
1074                          retval = ccs_check_argv0_perm(r, &rn, base_argv0);                          retval = ccs_check_argv0_perm(r, &rn, base_argv0);
1075                          if (retval == 1) {                          if (retval == 1)
                                 r->retry++;  
1076                                  goto retry;                                  goto retry;
                         }  
                         r->retry = 0;  
1077                          if (retval < 0)                          if (retval < 0)
1078                                  goto out;                                  goto out;
1079                  }                  }
# Line 1101  static int find_next_domain(struct ccs_r Line 1098  static int find_next_domain(struct ccs_r
1098          /* Check execute permission. */          /* Check execute permission. */
1099          r->mode = mode;          r->mode = mode;
1100          retval = ccs_check_exec_perm(r, &rn);          retval = ccs_check_exec_perm(r, &rn);
1101          if (retval == 1) {          if (retval == 1)
                 r->retry++;  
1102                  goto retry;                  goto retry;
         }  
         r->retry = 0;  
1103          if (retval < 0)          if (retval < 0)
1104                  goto out;                  goto out;
1105    
# Line 1139  static int find_next_domain(struct ccs_r Line 1133  static int find_next_domain(struct ccs_r
1133                  int error = ccs_check_supervisor(r,                  int error = ccs_check_supervisor(r,
1134                                                   "# wants to create domain\n"                                                   "# wants to create domain\n"
1135                                                   "%s\n", new_domain_name);                                                   "%s\n", new_domain_name);
1136                  if (error == 1) {                  if (error == 1)
                         r->retry++;  
1137                          goto retry;                          goto retry;
                 }  
                 r->retry = 0;  
1138                  if (error < 0)                  if (error < 0)
1139                          goto done;                          goto done;
1140          }          }

Legend:
Removed from v.1780  
changed lines
  Added in v.1781

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