Home
last modified time | relevance | path

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

12

/external/checkpolicy/
Dcheckmodule.c47 unsigned int policy_type = POLICY_BASE; variable
124 p->policy_type = policy_type; in write_binary_policy()
207 policy_type = POLICY_MOD; in main()
224 if (handle_unknown && (policy_type != POLICY_BASE)) { in main()
253 modpolicydb.policy_type = policy_type; in main()
266 if (modpolicydb.policy_type == POLICY_BASE) { in main()
Dmodule_compiler.c58 if (policydbp->policy_type != POLICY_MOD) { in define_policy()
82 if (policydbp->policy_type == POLICY_MOD) { in define_policy()
825 if (policydbp->policy_type == POLICY_BASE) { in require_class()
1547 if (policydbp->policy_type == POLICY_BASE in end_avrule_block()
Dcheckpolicy.c559 parse_policy.policy_type = POLICY_BASE; in main()
608 policydb.policy_type = POLICY_KERN; in main()
/external/libsepol/src/
Dwrite.c108 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write_item()
248 unsigned int oldvers = (p->policy_type == POLICY_KERN in avtab_write()
471 int new_roletr = (p->policy_type == POLICY_KERN && in role_trans_write()
626 if (p->policy_type != POLICY_KERN && in cond_write_bool()
653 unsigned int oldvers = (p->policy_type == POLICY_KERN in cond_write_av_list()
728 if (p->policy_type == POLICY_KERN) { in cond_write_node()
740 if (p->policy_type != POLICY_KERN && in cond_write_node()
791 && p->policy_type == POLICY_KERN) in context_write()
793 && p->policy_type == POLICY_BASE)) in context_write()
896 if (p->policy_type != POLICY_KERN && in write_cons_helper()
[all …]
Dpolicydb.c626 (p->policy_type == in roles_init()
737 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) { in policydb_user_cache()
1791 if ((p->policy_type == POLICY_KERN in context_read_and_validate()
1793 || (p->policy_type == POLICY_BASE in context_read_and_validate()
1977 if (p->policy_type != POLICY_KERN && in read_cons_helper()
2054 if ((p->policy_type == POLICY_KERN in class_read()
2056 || (p->policy_type == POLICY_BASE in class_read()
2114 if (p->policy_type == POLICY_KERN) { in role_read()
2122 if (p->policy_type != POLICY_KERN && in role_read()
2171 if (p->policy_type != POLICY_KERN in type_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.c601 if (p->policy_type != POLICY_KERN && in cond_read_bool()
810 if (p->policy_type == POLICY_KERN) { in cond_read_node()
823 if (p->policy_type != POLICY_KERN && in cond_read_node()
Dmodule.c877 && (p->policy->p.policy_type != SEPOL_POLICY_BASE)) { in sepol_module_package_write()
Dlink.c2486 if (b->policy_type != POLICY_BASE) { in link_modules()
2500 if (mods[i]->policy_type != POLICY_MOD) { in link_modules()
/external/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.h48 extern int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const …
/external/chromium/net/tools/testserver/
Ddevice_management.py243 policy_data.policy_type = msg.policy_type
325 if request.policy_type == 'google/chromeos/unregistered_user':
329 elif (request.policy_type in
448 if (msg.policy_type in token_info['allowed_policy_types'] and
449 msg.policy_type in self._server.policy):
450 if msg.policy_type == 'google/chromeos/user':
453 self._server.policy[msg.policy_type])
455 elif msg.policy_type == 'google/chromeos/device':
458 self._server.policy[msg.policy_type])
476 policy_data.policy_type = msg.policy_type
/external/chromium/chrome/browser/policy/
Dconfiguration_policy_provider.cc33 store->Apply(i->policy_type, value->DeepCopy()); in ApplyPolicyValueTree()
46 const Value* value = policies->Get(i->policy_type); in ApplyPolicyMap()
48 store->Apply(i->policy_type, value->DeepCopy()); in ApplyPolicyMap()
Ddevice_token_fetcher.cc66 em::DeviceRegisterRequest_Type policy_type, in FetchToken() argument
72 policy_type_ = policy_type; in FetchToken()
Dconfiguration_policy_provider.h38 ConfigurationPolicyType policy_type; member
Dcloud_policy_controller_unittest.cc130 const std::string& policy_type, in SetupIdentityStrategy() argument
143 Return(policy_type)); in SetupIdentityStrategy()
Dcloud_policy_controller.cc236 em::DeviceRegisterRequest_Type policy_type = in FetchToken() local
240 token_fetcher_->FetchToken(auth_token, device_id, policy_type, in FetchToken()
Ddevice_token_fetcher.h57 em::DeviceRegisterRequest_Type policy_type,
Dconfiguration_policy_pref_store.cc62 ConfigurationPolicyType policy_type; member
358 if (map[current].policy_type == policy) { in ApplyPolicyFromMap()
/external/libsepol/include/sepol/policydb/
Dpolicydb.h450 uint32_t policy_type; member
700 (((p)->policy_type == POLICY_KERN \
702 ((p)->policy_type != POLICY_KERN \
/external/checkpolicy/test/
Ddismod.c753 if (base->policy_type != POLICY_BASE) { in link_module()
772 if (module.policy_type != POLICY_MOD) { in link_module()
855 if (policydb.policy_type != POLICY_BASE && in main()
856 policydb.policy_type != POLICY_MOD) { in main()
872 if (policydb.policy_type == POLICY_BASE) { in main()
/external/chromium/chrome/browser/policy/proto/
Ddevice_management_backend.proto98 optional string policy_type = 1; field
122 // See PolicyFetchRequest.policy_type.
123 optional string policy_type = 1; field
/external/libsepol/
DChangeLog526 2) policydb_init no longer takes policy_type argument.
527 Caller must set policy_type separately.
530 4) policydb_write uses the policy_type and policyvers from the
/external/chromium/chrome/browser/chromeos/login/
Dsigned_settings.cc67 poldata->policy_type() == kDevicePolicyType && in PolicyIsSane()

12