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

Subversion リポジトリの参照

Diff of /trunk/1.6.x/ccs-tools/ccstools/kernel_test/tomoyo_new_file_test.c

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

revision 2222 by kumaneko, Wed Mar 4 05:29:20 2009 UTC revision 2301 by kumaneko, Mon Mar 23 07:19:55 2009 UTC
# Line 700  static void stage_file_test(void) Line 700  static void stage_file_test(void)
700                  write(exception_fd, cp, strlen(cp));                  write(exception_fd, cp, strlen(cp));
701          }          }
702          unlink2(filename);          unlink2(filename);
703    
704            if (has_cond) {
705                    const char *cp = "255-MAC_FOR_IOCTL=enforcing\n";
706                    write(profile_fd, cp, strlen(cp));
707                    policy = "allow_ioctl socket:[family=2;type=2;protocol=17] "
708                            "35089-35091 if task.uid=0";
709                    if (write_policy()) {
710                            int fd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP);
711                            show_result(ioctl(fd, 35090, 0), 1);
712                            delete_policy();
713                            show_result(ioctl(fd, 35090, 0), 0);
714                            if (fd != EOF)
715                                    close(fd);
716                    }
717                    cp = "255-MAC_FOR_IOCTL=disabled\n";
718                    write(profile_fd, cp, strlen(cp));
719            }
720  }  }
721    
722  int main(int argc, char *argv[])  int main(int argc, char *argv[])

Legend:
Removed from v.2222  
changed lines
  Added in v.2301

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