Home
last modified time | relevance | path

Searched refs:policy_file (Results 1 – 25 of 29) sorted by relevance

12

/external/selinux/libsepol/src/
Dwrite.c49 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()
269 static int avtab_write(struct policydb *p, avtab_t * a, struct policy_file *fp) in avtab_write()
345 struct policy_file *fp) in mls_write_semantic_level_helper()
376 struct policy_file *fp) in mls_write_semantic_range_helper()
393 static int mls_write_level(mls_level_t * l, struct policy_file *fp) in mls_write_level()
413 static int mls_write_range_helper(mls_range_t * r, struct policy_file *fp) in mls_write_range_helper()
446 struct policy_file *fp = pd->fp; in sens_write()
[all …]
Dpolicydb_public.c20 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()
Dprivate.h62 extern int next_entry(void *buf, struct policy_file *fp, size_t bytes) hidden;
64 struct policy_file *fp) hidden;
Dpolicydb.c1651 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 …]
Dmodule.c39 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()
Dgenbools.c152 struct policy_file pf;
213 struct policy_file pf;
Davtab.c427 int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, in avtab_read_item()
573 int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers) in avtab_read()
Dservices.c137 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()
/external/selinux/libsepol/tests/
Dtest-downgrade.c206 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/
Dpolicy.c48 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/libsepol/include/sepol/policydb/
Davtab.h119 struct policy_file;
120 extern int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a,
124 extern int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers);
Dpolicydb.h666 typedef struct policy_file { struct
679 struct policy_file pf; argument
684 extern int policydb_read(policydb_t * p, struct policy_file *fp,
687 struct policy_file *fp);
689 extern int policydb_write(struct policydb *p, struct policy_file *pf);
Dconditional.h132 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
/external/sepolicy/tools/
Dcheck_seapp.c125 FILE *policy_file; /** file handle to the policy file */ member
149 .policy_file = NULL,
281 if (!pol.policy_file) { in key_map_validate()
636 pol.policy_file = fopen(pol.policy_file_name, "rb"); in init()
637 if (!pol.policy_file) { in init()
656 sepol_policy_file_set_fp(pol.pf, pol.policy_file); in init()
971 if (pol.policy_file) { in cleanup()
974 fclose(pol.policy_file); in cleanup()
Dsepolicy-check.c188 int load_policy(char *filename, policydb_t *policydb, struct policy_file *pf) { in load_policy()
237 struct policy_file pf; in main()
/external/sepolicy/tools/sepolicy-analyze/
Dutils.h14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
Dsepolicy-analyze.c45 struct policy_file pf; in main()
Dutils.c25 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf) in load_policy()
/external/selinux/libsepol/cil/src/
Dcil_policy.h42 int cil_combine_policy(FILE **file_arr, FILE *policy_file);
Dcil_policy.c87 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()
1193 FILE *policy_file; in cil_gen_policy() local
1271 policy_file = fopen("policy.conf", "w+"); in cil_gen_policy()
1396 rc = cil_combine_policy(file_arr, policy_file); in cil_gen_policy()
1417 rc = fclose(policy_file); in cil_gen_policy()
/external/selinux/checkpolicy/
Dcheckmodule.c56 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__.py706 def policy(policy_file): argument
726 _policy.policy(policy_file)
728 raise ValueError(_("Failed to read %s policy file") % policy_file)
731 policy_file = get_installed_policy() variable
732 policy(policy_file)
/external/selinux/policycoreutils/sepolgen-ifgen/
Dsepolgen-ifgen-attr-helper.c148 struct policy_file pf; in load_policy()
/external/selinux/libsepol/
DChangeLog169 * Drop unused ->buffer field from struct policy_file.
172 * Add policy_file_init() initalizer for struct policy_file and use it, from Todd C. Miller.
591 new public types for policydb and policy_file.
/external/selinux/checkpolicy/test/
Ddispol.c430 struct policy_file pf; in main()

12