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

/external/libsepol/tests/
H A Dhelpers.h38 * policy_type Type of policy expected - POLICY_BASE or POLICY_MOD.
48 extern int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name);
H A Dhelpers.c35 int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name) argument
54 p->policy_type = policy_type;
H A Dtest-expander.c98 mybase->policy_type = POLICY_BASE;
107 mymodules[i - 1]->policy_type = POLICY_MOD;
/external/chromium/chrome/browser/policy/
H A Dconfiguration_policy_provider.cc33 store->Apply(i->policy_type, value->DeepCopy());
46 const Value* value = policies->Get(i->policy_type);
48 store->Apply(i->policy_type, value->DeepCopy());
H A Dconfiguration_policy_provider.h38 ConfigurationPolicyType policy_type; member in struct:policy::ConfigurationPolicyProvider::PolicyDefinitionList::Entry
H A Ddevice_token_fetcher.h57 em::DeviceRegisterRequest_Type policy_type,
H A Dcloud_policy_controller_unittest.cc130 const std::string& policy_type,
143 Return(policy_type));
125 SetupIdentityStrategy( const std::string& device_token, const std::string& device_id, const std::string& machine_id, const std::string& machine_model, const std::string& policy_type, const em::DeviceRegisterRequest_Type& policy_register_type, const std::string& user_name, const std::string& auth_token) argument
H A Ddevice_token_fetcher.cc66 em::DeviceRegisterRequest_Type policy_type,
72 policy_type_ = policy_type;
63 FetchToken( const std::string& auth_token, const std::string& device_id, em::DeviceRegisterRequest_Type policy_type, const std::string& machine_id, const std::string& machine_model) argument
H A Dcloud_policy_controller.cc236 em::DeviceRegisterRequest_Type policy_type = local
240 token_fetcher_->FetchToken(auth_token, device_id, policy_type,
H A Dconfiguration_policy_pref_store.cc62 ConfigurationPolicyType policy_type; member in struct:policy::ConfigurationPolicyPrefKeeper::PolicyToPreferenceMapEntry
358 if (map[current].policy_type == policy) {
/external/checkpolicy/
H A Dcheckmodule.c47 unsigned int policy_type = POLICY_BASE; variable
124 p->policy_type = policy_type;
207 policy_type = POLICY_MOD;
224 if (handle_unknown && (policy_type != POLICY_BASE)) {
253 modpolicydb.policy_type = policy_type;
266 if (modpolicydb.policy_type == POLICY_BASE) {
H A Dmodule_compiler.c58 if (policydbp->policy_type != POLICY_MOD) {
82 if (policydbp->policy_type == POLICY_MOD) {
825 if (policydbp->policy_type == POLICY_BASE) {
1547 if (policydbp->policy_type == POLICY_BASE
H A Dcheckpolicy.c559 parse_policy.policy_type = POLICY_BASE;
608 policydb.policy_type = POLICY_KERN;
/external/libsepol/src/
H A Dwrite.c108 unsigned int oldvers = (p->policy_type == POLICY_KERN
248 unsigned int oldvers = (p->policy_type == POLICY_KERN
471 int new_roletr = (p->policy_type == POLICY_KERN &&
626 if (p->policy_type != POLICY_KERN &&
653 unsigned int oldvers = (p->policy_type == POLICY_KERN
728 if (p->policy_type == POLICY_KERN) {
740 if (p->policy_type != POLICY_KERN &&
791 && p->policy_type == POLICY_KERN)
793 && p->policy_type == POLICY_BASE))
896 if (p->policy_type !
[all...]
H A Dpolicydb.c626 (p->policy_type ==
737 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) {
1791 if ((p->policy_type == POLICY_KERN
1793 || (p->policy_type == POLICY_BASE
1977 if (p->policy_type != POLICY_KERN &&
2054 if ((p->policy_type == POLICY_KERN
2056 || (p->policy_type == POLICY_BASE
2114 if (p->policy_type == POLICY_KERN) {
2122 if (p->policy_type !
3512 unsigned int policy_type, bufindex; local
[all...]
H A Dpolicydb_public.c112 p->policy_type = type;
119 switch (p->policy_type) {
H A Dconditional.c601 if (p->policy_type != POLICY_KERN &&
810 if (p->policy_type == POLICY_KERN) {
823 if (p->policy_type != POLICY_KERN &&
H A Dmodule.c877 && (p->policy->p.policy_type != SEPOL_POLICY_BASE)) {
H A Dlink.c2486 if (b->policy_type != POLICY_BASE) {
2500 if (mods[i]->policy_type != POLICY_MOD) {
H A Dservices.c92 if (mypolicydb.policy_type)
H A Dexpand.c2816 if (base->policy_type != POLICY_BASE) {
2821 state.out->policy_type = POLICY_KERN;
/external/chromium/net/tools/testserver/
H A 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
335 return (400, 'Invalid policy_type')
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
[all...]
/external/libsepol/include/sepol/policydb/
H A Dpolicydb.h450 uint32_t policy_type; member in struct:policydb
700 (((p)->policy_type == POLICY_KERN \
702 ((p)->policy_type != POLICY_KERN \
/external/checkpolicy/test/
H A Ddismod.c753 if (base->policy_type != POLICY_BASE) {
772 if (module.policy_type != POLICY_MOD) {
855 if (policydb.policy_type != POLICY_BASE &&
856 policydb.policy_type != POLICY_MOD) {
872 if (policydb.policy_type == POLICY_BASE) {
/external/chromium/chrome/browser/chromeos/login/
H A Dsigned_settings.cc67 poldata->policy_type() == kDevicePolicyType &&

Completed in 3327 milliseconds