Home
last modified time | relevance | path

Searched refs:REWRITE_PATH (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/security/tomoyo/
Dtomoyo_rewrite_test.c54 #define REWRITE_PATH "/tmp/rewrite_test" macro
61 write_domain_policy("allow_read/write " REWRITE_PATH, 0); in stage_rewrite_test()
62 write_domain_policy("allow_truncate " REWRITE_PATH, 0); in stage_rewrite_test()
63 write_domain_policy("allow_create " REWRITE_PATH " 0600", 0); in stage_rewrite_test()
64 write_domain_policy("allow_unlink " REWRITE_PATH, 0); in stage_rewrite_test()
65 write_exception_policy("deny_rewrite " REWRITE_PATH, 0); in stage_rewrite_test()
71 close(open(REWRITE_PATH, O_WRONLY | O_APPEND | O_CREAT, 0600)); in stage_rewrite_test()
77 fd = open(REWRITE_PATH, O_RDONLY); in stage_rewrite_test()
82 fd = open(REWRITE_PATH, O_WRONLY | O_APPEND); in stage_rewrite_test()
88 fd = open(REWRITE_PATH, O_WRONLY); in stage_rewrite_test()
[all …]