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

Subversion リポジトリの参照

Diff of /branches/ccs-patch/security/ccsecurity/policy_io.c

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

revision 2931 by kumaneko, Fri Aug 21 01:55:58 2009 UTC revision 2932 by kumaneko, Fri Aug 21 08:26:08 2009 UTC
# Line 299  static bool ccs_print_mac_mode(struct cc Line 299  static bool ccs_print_mac_mode(struct cc
299          int i;          int i;
300          const struct ccs_profile *ccs_profile = ccs_profile_ptr[index];          const struct ccs_profile *ccs_profile = ccs_profile_ptr[index];
301          for (i = 0; i < CCS_MAX_MAC_INDEX + CCS_MAX_CAPABILITY_INDEX; i++) {          for (i = 0; i < CCS_MAX_MAC_INDEX + CCS_MAX_CAPABILITY_INDEX; i++) {
302                  if (!ccs_mac_keywords_used[index])                  if (!ccs_mac_keywords_used[i])
303                          continue;                          continue;
304                  if (!ccs_io_printf(head, "%u-MAC::%s%s=%s %s %s\n", index,                  if (!ccs_io_printf(head, "%u-MAC::%s%s=%s %s %s\n", index,
305                                     i >= CCS_MAX_MAC_INDEX ?                                     i >= CCS_MAX_MAC_INDEX ?
# Line 1762  static bool ccs_get_argv0(struct ccs_exe Line 1762  static bool ccs_get_argv0(struct ccs_exe
1762                  while (offset < PAGE_SIZE) {                  while (offset < PAGE_SIZE) {
1763                          const char *kaddr = ee->dump.data;                          const char *kaddr = ee->dump.data;
1764                          const unsigned char c = kaddr[offset++];                          const unsigned char c = kaddr[offset++];
1765                          if (c && arg_len < CCS_MAX_PATHNAME_LEN - 10) {                          if (c && arg_len < CCS_EXEC_TMPSIZE - 10) {
1766                                  if (c == '\\') {                                  if (c == '\\') {
1767                                          arg_ptr[arg_len++] = '\\';                                          arg_ptr[arg_len++] = '\\';
1768                                          arg_ptr[arg_len++] = '\\';                                          arg_ptr[arg_len++] = '\\';

Legend:
Removed from v.2931  
changed lines
  Added in v.2932

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