/external/selinux/libsepol/src/ |
D | write.c | 49 struct policy_file *fp; 53 static int avrule_write_list(avrule_t * avrules, struct policy_file *fp); 55 static int ebitmap_write(ebitmap_t * e, struct policy_file *fp) in ebitmap_write() 100 avtab_ptr_t cur, struct policy_file *fp, in avtab_write_item() 273 static int avtab_write(struct policydb *p, avtab_t * a, struct policy_file *fp) in avtab_write() 349 struct policy_file *fp) in mls_write_semantic_level_helper() 380 struct policy_file *fp) in mls_write_semantic_range_helper() 397 static int mls_write_level(mls_level_t * l, struct policy_file *fp) in mls_write_level() 417 static int mls_write_range_helper(mls_range_t * r, struct policy_file *fp) in mls_write_range_helper() 450 struct policy_file *fp = pd->fp; in sens_write() [all …]
|
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 | private.h | 62 extern int next_entry(void *buf, struct policy_file *fp, size_t bytes) hidden; 64 struct policy_file *fp) hidden;
|
D | policydb.c | 1651 static int role_set_read(role_set_t * r, struct policy_file *fp) in role_set_read() 1666 static int type_set_read(type_set_t * t, struct policy_file *fp) in type_set_read() 1688 static int mls_read_range_helper(mls_range_t * r, struct policy_file *fp) in mls_read_range_helper() 1746 struct policy_file *fp) in mls_read_semantic_level_helper() 1794 struct policy_file *fp) in mls_read_semantic_range_helper() 1857 policydb_t * p, struct policy_file *fp) in context_read_and_validate() 1897 struct policy_file *fp) in perm_read() 1934 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read() 1984 int allowxtarget, struct policy_file *fp) in read_cons_helper() 2077 static int class_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in class_read() [all …]
|
D | module.c | 39 static int policy_file_seek(struct policy_file *fp, size_t offset) in policy_file_seek() 62 static int policy_file_length(struct policy_file *fp, size_t *out) in policy_file_length() 346 static int read_helper(char *buf, struct policy_file *file, uint32_t bytes) in read_helper() 373 struct policy_file *file, in module_package_read_offsets() 466 struct policy_file *file = &spf->pf; in sepol_module_package_read() 651 struct policy_file *file = &spf->pf; in sepol_module_package_info() 853 static int write_helper(char *data, size_t len, struct policy_file *file) in write_helper() 876 struct policy_file *file = &spf->pf; in sepol_module_package_write()
|
D | genbools.c | 152 struct policy_file pf; 213 struct policy_file pf;
|
D | avtab.c | 433 int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, in avtab_read_item() 585 int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers) in avtab_read()
|
D | services.c | 137 struct policy_file pf; in sepol_set_policydb_from_file() 1634 int hidden next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry() 1659 struct policy_file *fp) in put_entry() 1708 struct policy_file file, *fp; in sepol_load_policy()
|
D | conditional.c | 569 struct policy_file *fp) in cond_read_bool()
|
/external/selinux/libsepol/tests/ |
D | test-downgrade.c | 206 struct policy_file f; in read_binary_policy() 218 memset(&f, 0, sizeof(struct policy_file)); in read_binary_policy() 243 struct policy_file f; in write_binary_policy() 264 memset(&f, 0, sizeof(struct policy_file)); in write_binary_policy()
|
/external/selinux/policycoreutils/sepolicy/ |
D | policy.c | 48 const char *policy_file; in wrap_policy() local 53 if (!PyArg_ParseTuple(args, "z", &policy_file)) in wrap_policy() 61 pol_path = apol_policy_path_create(path_type, policy_file, mod_paths); in wrap_policy()
|
/external/selinux/libselinux/utils/ |
D | sefcontext_compile.c | 17 const char *policy_file; variable 24 if (policy_file && sepol_check_context(ctx) < 0) { in validate_context() 317 policy_file = optarg; in main() 334 if (policy_file) { in main() 335 policy_fp = fopen(policy_file, "r"); in main() 339 policy_file); in main() 345 policy_file); in main()
|
/external/selinux/libsepol/include/sepol/policydb/ |
D | avtab.h | 120 struct policy_file; 121 extern int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, 125 extern int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers);
|
D | policydb.h | 669 typedef struct policy_file { struct 682 struct policy_file pf; argument 687 extern int policydb_read(policydb_t * p, struct policy_file *fp, 690 struct policy_file *fp); 692 extern int policydb_write(struct policydb *p, struct policy_file *pf);
|
D | conditional.h | 132 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
|
/external/libbrillo/policy/tests/ |
D | libpolicy_unittest.cc | 50 base::FilePath policy_file(kPolicyFileAllSet); in TEST() local 53 new MockDevicePolicyImpl(policy_file, key_file, false); in TEST() 160 base::FilePath policy_file(kPolicyFileNoneSet); in TEST() local 163 new MockDevicePolicyImpl(policy_file, key_file, false); in TEST()
|
/external/selinux/libsepol/cil/src/ |
D | cil_policy.h | 42 int cil_combine_policy(FILE **file_arr, FILE *policy_file);
|
D | cil_policy.c | 87 int cil_combine_policy(FILE **file_arr, FILE *policy_file) in cil_combine_policy() argument 102 rc = fwrite(temp+rc_write, 1, rc_read-rc_write, policy_file); in cil_combine_policy() 1188 FILE *policy_file; in cil_gen_policy() local 1266 policy_file = fopen("policy.conf", "w+"); in cil_gen_policy() 1391 rc = cil_combine_policy(file_arr, policy_file); in cil_gen_policy() 1412 rc = fclose(policy_file); in cil_gen_policy()
|
/external/minijail/ |
D | syscall_filter.h | 30 int compile_filter(FILE *policy_file, struct sock_fprog *prog,
|
D | syscall_filter.c | 370 int compile_filter(FILE *policy_file, struct sock_fprog *prog, in compile_filter() argument 379 if (!policy_file) in compile_filter() 407 while (fgets(line, sizeof(line), policy_file)) { in compile_filter()
|
/external/selinux/checkpolicy/ |
D | checkmodule.c | 56 struct policy_file f, *fp; in read_binary_policy() 114 struct policy_file pf; in write_binary_policy()
|
/external/selinux/policycoreutils/sepolicy/sepolicy/ |
D | __init__.py | 773 def policy(policy_file): argument 793 _policy.policy(policy_file) 795 raise ValueError(_("Failed to read %s policy file") % policy_file) 798 policy_file = get_installed_policy() variable 799 policy(policy_file)
|
/external/selinux/policycoreutils/sepolgen-ifgen/ |
D | sepolgen-ifgen-attr-helper.c | 148 struct policy_file pf; in load_policy()
|
/external/selinux/checkpolicy/test/ |
D | dispol.c | 379 struct policy_file pf; in main()
|
/external/selinux/libsepol/ |
D | ChangeLog | 194 * Drop unused ->buffer field from struct policy_file. 197 * Add policy_file_init() initalizer for struct policy_file and use it, from Todd C. Miller. 616 new public types for policydb and policy_file.
|