Subversion リポジトリの参照
Diff of /trunk/1.6.x/ccs-tools/ccstools/kernel_test/tomoyo_new_file_test.c
Parent Directory
| Revision Log
| Patch
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 |
|
|
| |