Searched refs:domain_fp (Results 1 – 6 of 6) sorted by relevance
/third_party/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_filesystem_test.c | 206 fprintf(domain_fp, "delete allow_mount dev\\011name / " in main() 233 fprintf(domain_fp, "delete allow_mount <NULL> / tmpfs 0\n"); in main() 234 fprintf(domain_fp, "allow_mount anydev / tmpfs 0\n"); in main() 240 fprintf(domain_fp, "delete allow_mount anydev / tmpfs 0\n"); in main() 335 fprintf(domain_fp, "allow_mount none /tmp/mount/ tmpfs 0\n"); in main() 342 fprintf(domain_fp, in main() 346 fprintf(domain_fp, "allow_mount %s\\* /tmp/mount/ ext2 1\n", in main() 356 fprintf(domain_fp, "delete allow_mount %s\\* " in main() 360 fprintf(domain_fp, in main() 368 fprintf(domain_fp, "delete allow_mount none " in main() [all …]
|
D | include.h | 129 static FILE *domain_fp = NULL; variable 217 domain_fp = fopen(proc_policy_domain_policy, "w"); in tomoyo_test_init() 218 if (!domain_fp) { in tomoyo_test_init() 223 setlinebuf(domain_fp); in tomoyo_test_init() 247 fprintf(domain_fp, "select pid=%u\n", pid); in tomoyo_test_init() 248 fprintf(domain_fp, "use_profile 255\n"); in tomoyo_test_init() 249 fprintf(domain_fp, "allow_read/write /sys/kernel/security/tomoyo/domain_policy\n"); in tomoyo_test_init() 250 fprintf(domain_fp, "allow_truncate /sys/kernel/security/tomoyo/domain_policy\n"); in tomoyo_test_init() 251 fprintf(domain_fp, "allow_read/write /sys/kernel/security/tomoyo/exception_policy\n"); in tomoyo_test_init() 252 fprintf(domain_fp, "allow_truncate /sys/kernel/security/tomoyo/exception_policy\n"); in tomoyo_test_init() [all …]
|
D | tomoyo_accept_test.c | 74 fprintf(domain_fp, "delete %d %s\n", i, buffer); in test() 104 fprintf(domain_fp, "delete %d %s\n", i, buffer); in test() 105 fprintf(domain_fp, "delete allow_truncate %s\n", buffer); in test() 106 fprintf(domain_fp, "delete allow_create %s 0644\n", buffer); in test() 107 fprintf(domain_fp, "delete allow_rewrite %s\n", buffer); in test()
|
D | tomoyo_new_test.c | 86 fprintf(domain_fp, "%s /bin/true\n", self_domain); in setup_execute_bin_true() 87 fprintf(domain_fp, "use_profile 0\n"); in setup_execute_bin_true() 88 fprintf(domain_fp, "select pid=%u\n", pid); in setup_execute_bin_true() 94 fprintf(domain_fp, "delete %s /bin/true\n", self_domain); in cleanup_execute_bin_true() 95 fprintf(domain_fp, "select pid=%u\n", pid); in cleanup_execute_bin_true() 650 fprintf(domain_fp, "delete %s\n", self_domain); in main()
|
D | tomoyo_new_file_test.c | 619 fprintf(domain_fp, "%s /bin/true\n", self_domain); in main() 620 fprintf(domain_fp, "use_profile 255\n"); in main() 621 fprintf(domain_fp, "select pid=%u\n", pid); in main() 624 fprintf(domain_fp, "use_profile 0\n"); in main()
|
D | tomoyo_policy_io_test.c | 69 policy_fp = domain_fp; in stage_policy_io_test()
|