Home
last modified time | relevance | path

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

/third_party/selinux/checkpolicy/
Dcheckmodule.c46 unsigned int policy_type = POLICY_BASE; variable
114 p->policy_type = policy_type; in write_binary_policy()
200 policy_type = POLICY_MOD; in main()
242 if (handle_unknown && (policy_type != POLICY_BASE)) { in main()
247 if (binary && (policy_type != POLICY_BASE)) { in main()
274 modpolicydb.policy_type = policy_type; in main()
287 if (policy_type != POLICY_BASE && outfile) { in main()
308 if (modpolicydb.policy_type == POLICY_BASE && !cil) { in main()
Dmodule_compiler.c87 if (policydbp->policy_type != POLICY_MOD) { in define_policy()
112 if (policydbp->policy_type == POLICY_MOD) { in define_policy()
847 if (policydbp->policy_type == POLICY_BASE) { in require_class()
1430 if (policydbp->policy_type == POLICY_BASE in end_avrule_block()
Dcheckpolicy.c607 parse_policy.policy_type = POLICY_BASE; in main()
647 if (optimize && policydbp->policy_type == POLICY_KERN) { in main()
669 policydb.policy_type = POLICY_KERN; in main()
/third_party/selinux/libsepol/src/
Dwrite.c48 #define glblub_version ((p->policy_type == POLICY_KERN && \
50 (p->policy_type == POLICY_BASE && \
115 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write_item()
287 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write()
510 int new_roletr = (p->policy_type == POLICY_KERN && in role_trans_write()
741 if (p->policy_type != POLICY_KERN && in cond_write_bool()
768 unsigned int oldvers = (p->policy_type == POLICY_KERN in cond_write_av_list()
843 if (p->policy_type == POLICY_KERN) { in cond_write_node()
855 if (p->policy_type != POLICY_KERN && in cond_write_node()
906 && p->policy_type == POLICY_KERN) in context_write()
[all …]
Dpolicydb.c786 (p->policy_type == in roles_init()
977 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) { in policydb_user_cache()
2033 if ((p->policy_type == POLICY_KERN in context_read_and_validate()
2035 || (p->policy_type == POLICY_BASE in context_read_and_validate()
2221 if (p->policy_type != POLICY_KERN && in read_cons_helper()
2224 else if (p->policy_type == POLICY_KERN && in read_cons_helper()
2308 if ((p->policy_type == POLICY_KERN in class_read()
2310 || (p->policy_type == POLICY_BASE in class_read()
2321 if ((p->policy_type == POLICY_KERN && in class_read()
2323 (p->policy_type == POLICY_BASE && in class_read()
[all …]
Dpolicydb_public.c111 p->policy_type = type; in sepol_policydb_set_typevers()
118 switch (p->policy_type) { in sepol_policydb_set_vers()
Dconditional.c595 if (p->policy_type != POLICY_KERN && in cond_read_bool()
793 if (p->policy_type == POLICY_KERN) { in cond_read_node()
806 if (p->policy_type != POLICY_KERN && in cond_read_node()
Doptimize.c444 if (p->policy_type != POLICY_KERN) in policydb_optimize()
Dmodule_to_cil.c2164 if ((is_base_role && pdb->policy_type == SEPOL_POLICY_BASE) || in role_to_cil()
3981 if (pdb->policy_type == POLICY_BASE) { in fix_module_name()
4016 if (pdb->policy_type != SEPOL_POLICY_BASE && in sepol_module_policydb_to_cil()
4017 pdb->policy_type != SEPOL_POLICY_MOD) { in sepol_module_policydb_to_cil()
4028 if (pdb->policy_type == SEPOL_POLICY_BASE && !pdb->mls) { in sepol_module_policydb_to_cil()
4039 if (pdb->policy_type == SEPOL_POLICY_BASE) { in sepol_module_policydb_to_cil()
Dpolicydb_validate.c1275 switch (p->policy_type) { in validate_properties()
1343 if (p->policy_type == POLICY_KERN) { in validate_policydb()
Dmodule.c892 && (p->policy->p.policy_type != SEPOL_POLICY_BASE)) { in sepol_module_package_write()
Dservices.c140 if (mypolicydb.policy_type) in sepol_set_policydb_from_file()
218 if (policydb->policy_type == POLICY_KERN && in get_name_list()
Dlink.c2522 if (b->policy_type != POLICY_BASE) { in link_modules()
2536 if (mods[i]->policy_type != POLICY_MOD) { in link_modules()
Dexpand.c2987 if (base->policy_type != POLICY_BASE) { in expand_module()
2992 state.out->policy_type = POLICY_KERN; in expand_module()
Dkernel_to_conf.c3093 if (pdb->policy_type != SEPOL_POLICY_KERN) { in sepol_kernel_policydb_to_conf()
Dkernel_to_cil.c3226 if (pdb->policy_type != SEPOL_POLICY_KERN) { in sepol_kernel_policydb_to_cil()
/third_party/selinux/libsepol/tests/
Dhelpers.c35 int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *p… in test_load_policy() argument
54 p->policy_type = policy_type; in test_load_policy()
Dtest-expander.c98 mybase->policy_type = POLICY_BASE; in expander_policy_init()
107 mymodules[i - 1]->policy_type = POLICY_MOD; in expander_policy_init()
Dhelpers.h77 extern int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const …
/third_party/selinux/libselinux/src/
Dselinux_config.c286 char *policy_type = strrchr(path, '/'); in selinux_set_policy_root() local
287 if (!policy_type) { in selinux_set_policy_root()
291 policy_type++; in selinux_set_policy_root()
299 if (setpolicytype(policy_type) != 0) in selinux_set_policy_root()
/third_party/selinux/libsepol/fuzz/
Dbinpolicy-fuzzer.c41 if (policydb.policy_type == POLICY_KERN) in LLVMFuzzerTestOneInput()
/third_party/selinux/checkpolicy/test/
Ddismod.c779 if (base->policy_type != POLICY_BASE) { in link_module()
803 if (module.policy_type != POLICY_MOD) { in link_module()
887 if (policydb.policy_type != POLICY_BASE && in main()
888 policydb.policy_type != POLICY_MOD) { in main()
904 if (policydb.policy_type == POLICY_BASE) { in main()
/third_party/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h512 uint32_t policy_type; member
797 (((p)->policy_type == POLICY_KERN \
799 ((p)->policy_type != POLICY_KERN \
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set.h682 using policy_type = Policy;
/third_party/selinux/libsepol/cil/src/
Dcil_binary.c4321 pdb->policy_type = POLICY_KERN; in __cil_policydb_create()