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

12

/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_org/tools/grit/grit/format/policy_templates/writers/
H A Dadml_writer.py63 policy_type = policy['type']
84 if policy_type == 'main':
86 elif policy_type in ('string', 'dict'):
92 elif policy_type == 'int':
96 elif policy_type in ('int-enum', 'string-enum'):
102 elif policy_type == 'list':
109 elif policy_type == 'group':
111 elif policy_type == 'external':
115 raise Exception('Unknown policy type %s.' % policy_type)
H A Dplist_writer.py83 policy_type = policy['type']
84 if policy_type == 'external':
97 self.TYPE_TO_INPUT[policy_type])
98 if policy_type in ('int-enum', 'string-enum'):
101 if policy_type == 'int-enum':
H A Dadmx_writer.py254 policy_type = policy['type']
256 if policy_type == 'external':
276 if policy_type == 'main':
279 elif policy_type in ('string', 'dict'):
283 elif policy_type == 'int':
286 elif policy_type in ('int-enum', 'string-enum'):
289 elif policy_type == 'list':
292 elif policy_type == 'group':
295 raise Exception('Unknown policy type %s.' % policy_type)
H A Ddoc_writer.py365 policy_type = policy['type']
366 if policy_type == 'main':
378 elif policy_type == 'string':
380 elif policy_type in ('int', 'int-enum'):
389 elif policy_type == 'string-enum':
391 elif policy_type == 'list':
393 elif policy_type == 'dict':
396 raise Exception('Unknown policy type: ' + policy_type)
/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,
/external/chromium_org/components/policy/core/common/cloud/
H A Dcomponent_cloud_policy_store.h51 // |policy_type|. Otherwise returns false.
52 static bool GetPolicyType(PolicyDomain domain, std::string* policy_type);
54 // Returns true if |policy_type| corresponds to a policy domain that can be
57 static bool GetPolicyDomain(const std::string& policy_type,
116 const std::string& policy_type,
H A Dcomponent_cloud_policy_store.cc35 const char* policy_type; member in struct:policy::__anon7778::DomainConstants
55 if (kDomains[i].policy_type == type)
86 std::string* policy_type) {
89 *policy_type = constants->policy_type;
94 bool ComponentCloudPolicyStore::GetPolicyDomain(const std::string& policy_type, argument
96 const DomainConstants* constants = GetDomainConstantsForType(policy_type);
137 proto.Pass(), constants.policy_type, id, &payload, NULL)) {
261 GetDomainConstantsForType(policy_data.policy_type());
272 const std::string& policy_type,
85 GetPolicyType(PolicyDomain domain, std::string* policy_type) argument
270 ValidateProto( scoped_ptr<em::PolicyFetchResponse> proto, const std::string& policy_type, const std::string& settings_entity_id, em::ExternalPolicyData* payload, em::PolicyData* policy_data) argument
[all...]
H A Dcloud_policy_validator.cc71 const std::string& policy_type) {
73 policy_type_ = policy_type;
249 policy_data_->policy_type() != policy_type_) {
250 LOG(ERROR) << "Wrong policy type " << policy_data_->policy_type();
70 ValidatePolicyType( const std::string& policy_type) argument
/external/chromium_org/content/shell/browser/
H A Dshell_network_delegate.cc85 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ? local
88 net::StaticCookiePolicy policy(policy_type);
97 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ? local
100 net::StaticCookiePolicy policy(policy_type);
/external/chromium_org/components/policy/tools/
H A Dsyntax_check_policy_template_json.py147 def _CheckPolicySchema(self, policy, policy_type):
153 if schema_type != TYPE_TO_SCHEMA[policy_type]:
188 policy_type = self._CheckContains(policy, 'type', str)
189 if policy_type not in policy_types:
191 'policy', policy.get('name'), policy_type)
209 if policy_type == 'group':
230 else: # policy_type != group
238 self._CheckPolicySchema(policy, policy_type)
273 if policy_type == 'main':
275 elif policy_type i
[all...]
/external/checkpolicy/
H A Dcheckmodule.c47 unsigned int policy_type = POLICY_BASE; variable
126 p->policy_type = policy_type;
209 policy_type = POLICY_MOD;
226 if (handle_unknown && (policy_type != POLICY_BASE)) {
255 modpolicydb.policy_type = policy_type;
268 if (modpolicydb.policy_type == POLICY_BASE) {
/external/chromium_org/content/renderer/
H A Dwebsharedworker_proxy.h48 blink::WebContentSecurityPolicyType policy_type,
77 blink::WebContentSecurityPolicyType policy_type,
H A Dwebsharedworker_proxy.cc58 blink::WebContentSecurityPolicyType policy_type,
82 content_security_policy, policy_type));
129 blink::WebContentSecurityPolicyType policy_type,
134 policy_type, pending_route_id_, script_resource_appcache_id);
51 CreateWorkerContext( const GURL& script_url, bool is_shared, const base::string16& name, const base::string16& user_agent, const base::string16& source_code, const base::string16& content_security_policy, blink::WebContentSecurityPolicyType policy_type, int pending_route_id, int64 script_resource_appcache_id) argument
123 startWorkerContext( const blink::WebURL& script_url, const blink::WebString& name, const blink::WebString& user_agent, const blink::WebString& source_code, const blink::WebString& content_security_policy, blink::WebContentSecurityPolicyType policy_type, long long script_resource_appcache_id) argument
/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.c689 (p->policy_type ==
800 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) {
1854 if ((p->policy_type == POLICY_KERN
1856 || (p->policy_type == POLICY_BASE
2040 if (p->policy_type != POLICY_KERN &&
2043 else if (p->policy_type == POLICY_KERN &&
2121 if ((p->policy_type == POLICY_KERN
2123 || (p->policy_type == POLICY_BASE
2134 if ((p->policy_type
3605 unsigned int policy_type, bufindex; local
[all...]
H A Dpolicydb_public.c112 p->policy_type = type;
119 switch (p->policy_type) {
/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/chromium_org/content/worker/
H A Dwebsharedworker_stub.cc87 blink::WebContentSecurityPolicyType policy_type) {
94 content_security_policy, policy_type, 0);
83 OnStartWorkerContext( const GURL& url, const base::string16& user_agent, const base::string16& source_code, const base::string16& content_security_policy, blink::WebContentSecurityPolicyType policy_type) argument
H A Dwebsharedworker_stub.h60 blink::WebContentSecurityPolicyType policy_type);
/external/chromium_org/chromeos/network/
H A Dpolicy_util.cc80 std::string policy_type; local
82 &policy_type);
86 if (policy_type != actual_network_type)

Completed in 425 milliseconds

12