/third_party/ltp/testcases/kernel/security/tomoyo/ |
D | tomoyo_policy_memory_test.c | 41 static const char *policy_file = NULL; variable 53 FILE *fp = fopen(policy_file, "r"); in check_policy_common() 184 policy_file = "/sys/kernel/security/tomoyo/domain_policy"; in domain_policy_test() 187 FILE *fp = fopen(policy_file, "w"); in domain_policy_test() 219 FILE *fp = fopen(policy_file, "w"); in domain_policy_test() 294 policy_file = "/sys/kernel/security/tomoyo/exception_policy"; in exception_policy_test() 297 FILE *fp = fopen(policy_file, "w"); in exception_policy_test() 328 FILE *fp = fopen(policy_file, "w"); in exception_policy_test()
|
D | tomoyo_policy_io_test.c | 27 static const char *policy_file = ""; variable 31 FILE *fp = fopen(policy_file, "r"); in try_io() 68 policy_file = proc_policy_domain_policy; in stage_policy_io_test() 114 policy_file = proc_policy_exception_policy; in stage_policy_io_test()
|
/third_party/selinux/libsepol/src/ |
D | write.c | 54 struct policy_file *fp; 59 avrule_t * avrules, struct policy_file *fp); 61 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) in ebitmap_write() 106 avtab_ptr_t cur, struct policy_file *fp, in avtab_write_item() 279 static int avtab_write(struct policydb *p, avtab_t * a, struct policy_file *fp) in avtab_write() 355 struct policy_file *fp) in mls_write_semantic_level_helper() 386 struct policy_file *fp) in mls_write_semantic_range_helper() 403 static int mls_write_level(mls_level_t * l, struct policy_file *fp) in mls_write_level() 423 static int mls_write_range_helper(mls_range_t * r, struct policy_file *fp) in mls_write_range_helper() 456 struct policy_file *fp = pd->fp; in sens_write() [all …]
|
D | private.h | 82 extern int next_entry(void *buf, struct policy_file *fp, size_t bytes); 84 struct policy_file *fp); 85 extern int str_read(char **strp, struct policy_file *fp, size_t len);
|
D | policydb_public.c | 20 struct policy_file *pf = &spf->pf; in sepol_policy_file_set_mem() 34 struct policy_file *pf = &spf->pf; in sepol_policy_file_set_fp() 42 struct policy_file *pf = &spf->pf; in sepol_policy_file_get_len()
|
D | module.c | 40 static int policy_file_seek(struct policy_file *fp, size_t offset) in policy_file_seek() 63 static int policy_file_length(struct policy_file *fp, size_t *out) in policy_file_length() 350 static int read_helper(char *buf, struct policy_file *file, uint32_t bytes) in read_helper() 377 struct policy_file *file, in module_package_read_offsets() 470 struct policy_file *file = &spf->pf; in sepol_module_package_read() 655 struct policy_file *file = &spf->pf; in sepol_module_package_info() 845 static int write_helper(char *data, size_t len, struct policy_file *file) in write_helper() 868 struct policy_file *file = &spf->pf; in sepol_module_package_write()
|
D | policydb.c | 1813 static int role_set_read(role_set_t * r, struct policy_file *fp) in role_set_read() 1828 static int type_set_read(type_set_t * t, struct policy_file *fp) in type_set_read() 1850 static int mls_read_range_helper(mls_range_t * r, struct policy_file *fp) in mls_read_range_helper() 1908 struct policy_file *fp) in mls_read_semantic_level_helper() 1956 struct policy_file *fp) in mls_read_semantic_range_helper() 2019 policydb_t * p, struct policy_file *fp) in context_read_and_validate() 2059 struct policy_file *fp, uint32_t nprim) in perm_read() 2093 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read() 2148 int allowxtarget, struct policy_file *fp) in read_cons_helper() 2241 static int class_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in class_read() [all …]
|
D | assertion.c | 40 const char *policy_file = "policy.conf"; in policy_name() local 42 policy_file = p->name; in policy_name() 44 return policy_file; in policy_name()
|
D | services.c | 135 struct policy_file pf; in sepol_set_policydb_from_file() 1681 int next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() 1709 struct policy_file *fp) in put_entry() 1743 int str_read(char **strp, struct policy_file *fp, size_t len) in str_read() 1792 struct policy_file file, *fp; in sepol_load_policy()
|
D | avtab.c | 434 int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, in avtab_read_item() 591 int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers) in avtab_read()
|
D | conditional.c | 569 struct policy_file *fp) in cond_read_bool()
|
/third_party/selinux/libsepol/tests/ |
D | test-downgrade.c | 206 struct policy_file f; in read_binary_policy() 217 memset(&f, 0, sizeof(struct policy_file)); in read_binary_policy() 241 struct policy_file f; in write_binary_policy() 262 memset(&f, 0, sizeof(struct policy_file)); in write_binary_policy()
|
/third_party/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 17 static const char *policy_file; variable 24 if (policy_file && sepol_check_context(ctx) < 0) { in validate_context() 317 policy_file = optarg; in main() 341 if (policy_file) { in main() 342 policy_fp = fopen(policy_file, "r"); in main() 346 argv[0], policy_file, strerror(errno)); in main() 352 argv[0], policy_file); in main()
|
/third_party/selinux/libsepol/include/sepol/policydb/ |
D | avtab.h | 121 struct policy_file; 122 extern int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, 126 extern int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers);
|
D | policydb.h | 710 typedef struct policy_file { struct 723 struct policy_file pf; argument 728 extern int policydb_read(policydb_t * p, struct policy_file *fp, 731 struct policy_file *fp); 733 extern int policydb_write(struct policydb *p, struct policy_file *pf);
|
D | conditional.h | 133 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
|
/third_party/selinux/libsepol/fuzz/ |
D | binpolicy-fuzzer.c | 10 struct policy_file pf; in write_binary_policy() 22 struct policy_file pf; in LLVMFuzzerTestOneInput()
|
/third_party/selinux/checkpolicy/ |
D | checkmodule.c | 54 struct policy_file f, *fp; in read_binary_policy() 112 struct policy_file pf; in write_binary_policy()
|
D | checkpolicy.c | 409 struct policy_file pf; in main()
|
/third_party/selinux/checkpolicy/test/ |
D | dispol.c | 403 struct policy_file pf; in main()
|
D | dismod.c | 727 struct policy_file f; in read_policy()
|
/third_party/libbpf/.github/actions/build-selftests/ |
D | vmlinux.h | 53965 struct policy_file { struct
|