Home
last modified time | relevance | path

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

12

/external/selinux/checkpolicy/
Dcheckmodule.c49 unsigned int policy_type = POLICY_BASE; variable
117 p->policy_type = policy_type; in write_binary_policy()
198 policy_type = POLICY_MOD; in main()
240 if (handle_unknown && (policy_type != POLICY_BASE)) { in main()
245 if (binary && (policy_type != POLICY_BASE)) { in main()
272 modpolicydb.policy_type = policy_type; in main()
285 if (policy_type != POLICY_BASE && outfile) { in main()
304 if (modpolicydb.policy_type == POLICY_BASE && !cil) { in main()
Dmodule_compiler.c87 if (policydbp->policy_type != POLICY_MOD) { in define_policy()
111 if (policydbp->policy_type == POLICY_MOD) { in define_policy()
846 if (policydbp->policy_type == POLICY_BASE) { in require_class()
1429 if (policydbp->policy_type == POLICY_BASE in end_avrule_block()
Dcheckpolicy.c595 parse_policy.policy_type = POLICY_BASE; in main()
633 if (optimize && policydbp->policy_type == POLICY_KERN) { in main()
657 policydb.policy_type = POLICY_KERN; in main()
/external/autotest/client/cros/mock_policies/
Dcreate_blob.py153 def ProcessCloudPolicy(policy_type, argument
170 if (policy_type in policy):
171 if policy_type == 'google/chromeos/user':
173 GatherUserPolicySettings(settings, policy[policy_type])
175 elif policy_type == 'google/chromeos/device':
177 GatherDevicePolicySettings(settings, policy[policy_type])
192 policy_data.policy_type = policy_type
214 ProcessCloudPolicy(options.policy_type,
/external/selinux/libsepol/src/
Dwrite.c49 #define glblub_version ((p->policy_type == POLICY_KERN && \
51 (p->policy_type == POLICY_BASE && \
116 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write_item()
288 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write()
511 int new_roletr = (p->policy_type == POLICY_KERN && in role_trans_write()
681 if (p->policy_type != POLICY_KERN && in cond_write_bool()
708 unsigned int oldvers = (p->policy_type == POLICY_KERN in cond_write_av_list()
783 if (p->policy_type == POLICY_KERN) { in cond_write_node()
795 if (p->policy_type != POLICY_KERN && in cond_write_node()
846 && p->policy_type == POLICY_KERN) in context_write()
[all …]
Dpolicydb.c766 (p->policy_type == in roles_init()
960 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) { in policydb_user_cache()
2038 if ((p->policy_type == POLICY_KERN in context_read_and_validate()
2040 || (p->policy_type == POLICY_BASE in context_read_and_validate()
2222 if (p->policy_type != POLICY_KERN && in read_cons_helper()
2225 else if (p->policy_type == POLICY_KERN && in read_cons_helper()
2307 if ((p->policy_type == POLICY_KERN in class_read()
2309 || (p->policy_type == POLICY_BASE in class_read()
2320 if ((p->policy_type == POLICY_KERN && in class_read()
2322 (p->policy_type == POLICY_BASE && in class_read()
[all …]
Dpolicydb_public.c112 p->policy_type = type; in sepol_policydb_set_typevers()
119 switch (p->policy_type) { in sepol_policydb_set_vers()
Dconditional.c598 if (p->policy_type != POLICY_KERN && in cond_read_bool()
807 if (p->policy_type == POLICY_KERN) { in cond_read_node()
820 if (p->policy_type != POLICY_KERN && in cond_read_node()
Doptimize.c366 if (p->policy_type != POLICY_KERN) in policydb_optimize()
Dmodule_to_cil.c2146 if ((is_base_role && pdb->policy_type == SEPOL_POLICY_BASE) || in role_to_cil()
3929 if (pdb->policy_type == POLICY_BASE) { in fix_module_name()
3964 if (pdb->policy_type != SEPOL_POLICY_BASE && in sepol_module_policydb_to_cil()
3965 pdb->policy_type != SEPOL_POLICY_MOD) { in sepol_module_policydb_to_cil()
3976 if (pdb->policy_type == SEPOL_POLICY_BASE && !pdb->mls) { in sepol_module_policydb_to_cil()
3987 if (pdb->policy_type == SEPOL_POLICY_BASE) { in sepol_module_policydb_to_cil()
Dmodule.c887 && (p->policy->p.policy_type != SEPOL_POLICY_BASE)) { in sepol_module_package_write()
Dservices.c143 if (mypolicydb.policy_type) in sepol_set_policydb_from_file()
221 if (policydb->policy_type == POLICY_KERN && in get_name_list()
Dlink.c2523 if (b->policy_type != POLICY_BASE) { in link_modules()
2537 if (mods[i]->policy_type != POLICY_MOD) { in link_modules()
/external/autotest/client/cros/enterprise/
Dpolicy_group.py88 policy_type, argument
102 policy_group = self._get_policy_group(policy_type, extension_key)
106 def _get_policy_group(self, policy_type, extension_key=None): argument
108 if policy_type == 'chrome':
110 elif policy_type == 'ext_values':
112 elif policy_type == 'displayed_ext_values':
114 elif policy_type == 'local':
Dpolicy_manager.py114 policy_type, argument
128 if policy_type != 'extension':
Denterprise_policy_base.py307 policy_type, argument
322 self.pol_manager.remove_policy(name, policy_type, extID)
/external/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 …
/external/selinux/libselinux/src/
Dselinux_config.c276 char *policy_type = strrchr(path, '/'); in selinux_set_policy_root() local
277 if (!policy_type) { in selinux_set_policy_root()
281 policy_type++; in selinux_set_policy_root()
289 if (setpolicytype(policy_type) != 0) in selinux_set_policy_root()
/external/selinux/checkpolicy/test/
Ddismod.c778 if (base->policy_type != POLICY_BASE) { in link_module()
802 if (module.policy_type != POLICY_MOD) { in link_module()
886 if (policydb.policy_type != POLICY_BASE && in main()
887 policydb.policy_type != POLICY_MOD) { in main()
903 if (policydb.policy_type == POLICY_BASE) { in main()
/external/selinux/libsepol/include/sepol/policydb/
Dpolicydb.h510 uint32_t policy_type; member
782 (((p)->policy_type == POLICY_KERN \
784 ((p)->policy_type != POLICY_KERN \
/external/autotest/client/common_lib/cros/
Dpolicy.py83 data_proto.policy_type = ownership.POLICY_TYPE
/external/selinux/gui/
DmodulesPage.py84 status, self.policy_type = selinux.selinux_getpolicytype()
/external/autotest/client/cros/
Downership.py141 data_proto.policy_type != POLICY_TYPE or

12