Home
last modified time | relevance | path

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

/external/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()
240 static int avtab_write(struct policydb *p, avtab_t * a, struct policy_file *fp) in avtab_write()
316 struct policy_file *fp) in mls_write_semantic_level_helper()
347 struct policy_file *fp) in mls_write_semantic_range_helper()
364 static int mls_write_level(mls_level_t * l, struct policy_file *fp) in mls_write_level()
384 static int mls_write_range_helper(mls_range_t * r, struct policy_file *fp) in mls_write_range_helper()
417 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.c1593 static int role_set_read(role_set_t * r, struct policy_file *fp) in role_set_read()
1608 static int type_set_read(type_set_t * t, struct policy_file *fp) in type_set_read()
1630 static int mls_read_range_helper(mls_range_t * r, struct policy_file *fp) in mls_read_range_helper()
1688 struct policy_file *fp) in mls_read_semantic_level_helper()
1736 struct policy_file *fp) in mls_read_semantic_range_helper()
1799 policydb_t * p, struct policy_file *fp) in context_read_and_validate()
1839 struct policy_file *fp) in perm_read()
1876 static int common_read(policydb_t * p, hashtab_t h, struct policy_file *fp) in common_read()
1926 int allowxtarget, struct policy_file *fp) in read_cons_helper()
2015 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 size_t policy_file_length(struct policy_file *fp) in policy_file_length()
326 static int read_helper(char *buf, struct policy_file *file, uint32_t bytes) in read_helper()
353 struct policy_file *file, in module_package_read_offsets()
443 struct policy_file *file = &spf->pf; in sepol_module_package_read()
628 struct policy_file *file = &spf->pf; in sepol_module_package_info()
830 static int write_helper(char *data, size_t len, struct policy_file *file) in write_helper()
853 struct policy_file *file = &spf->pf; in sepol_module_package_write()
Dgenbools.c152 struct policy_file pf;
213 struct policy_file pf;
Dservices.c87 struct policy_file pf; in sepol_set_policydb_from_file()
934 int hidden next_entry(void *buf, struct policy_file *fp, size_t bytes) in next_entry()
959 struct policy_file *fp) in put_entry()
1008 struct policy_file file, *fp; in sepol_load_policy()
Davtab.c369 int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a, in avtab_read_item()
490 int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers) in avtab_read()
Dconditional.c569 struct policy_file *fp) in cond_read_bool()
/external/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/libsepol/include/sepol/policydb/
Davtab.h101 struct policy_file;
102 extern int avtab_read_item(struct policy_file *fp, uint32_t vers, avtab_t * a,
106 extern int avtab_read(avtab_t * a, struct policy_file *fp, uint32_t vers);
Dpolicydb.h641 typedef struct policy_file { struct
654 struct policy_file pf; argument
659 extern int policydb_read(policydb_t * p, struct policy_file *fp,
662 struct policy_file *fp);
664 extern int policydb_write(struct policydb *p, struct policy_file *pf);
Dconditional.h129 extern int cond_read_bool(policydb_t * p, hashtab_t h, struct policy_file *fp);
/external/chromium/chrome/browser/chromeos/
Dplugin_selection_policy_unittest.cc88 FilePath policy_file = GetPolicyPath(name); in CreatePolicy() local
89 size_t bytes_written = file_util::WriteFile(policy_file, in CreatePolicy()
93 *path = policy_file; in CreatePolicy()
99 FilePath policy_file(temp_dir_.path()); in GetPolicyPath() local
100 return policy_file.Append(FilePath(name)); in GetPolicyPath()
Dplugin_selection_policy.cc52 bool PluginSelectionPolicy::InitFromFile(const FilePath& policy_file) { in InitFromFile() argument
59 if (!file_util::ReadFileToString(policy_file, &data)) { in InitFromFile()
61 << policy_file.value() << "\"."; in InitFromFile()
Dplugin_selection_policy.h69 bool InitFromFile(const FilePath& policy_file);
/external/sepolicy/tools/
Dcheck_seapp.c119 FILE *policy_file; /** file handle to the policy file */ member
143 .policy_file = NULL,
274 if (!pol.policy_file) { in key_map_validate()
599 pol.policy_file = fopen(pol.policy_file_name, "rb"); in init()
600 if (!pol.policy_file) { in init()
619 sepol_policy_file_set_fp(pol.pf, pol.policy_file); in init()
955 if (pol.policy_file) { in cleanup()
958 fclose(pol.policy_file); in cleanup()
/external/checkpolicy/
Dcheckmodule.c55 struct policy_file f, *fp; in read_binary_policy()
114 struct policy_file pf; in write_binary_policy()
Dcheckpolicy.c398 struct policy_file pf; in main()
DChangeLog102 * Initialize struct policy_file before using it, from Todd C. Miller.
/external/libsepol/
DChangeLog118 * Drop unused ->buffer field from struct policy_file.
121 * Add policy_file_init() initalizer for struct policy_file and use it, from Todd C. Miller.
540 new public types for policydb and policy_file.
/external/checkpolicy/test/
Ddispol.c404 struct policy_file pf; in main()
Ddismod.c703 struct policy_file f; in read_policy()