Lines Matching refs:domain_fp
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()
253 fprintf(domain_fp, "allow_read/write /sys/kernel/security/tomoyo/profile\n"); in tomoyo_test_init()
254 fprintf(domain_fp, "allow_truncate /sys/kernel/security/tomoyo/profile\n"); in tomoyo_test_init()
285 fprintf(domain_fp, "delete "); in write_domain_policy()
286 fprintf(domain_fp, "%s\n", policy); in write_domain_policy()