HomeSort by relevance Sort by last modified time
    Searched refs:policy_type (Results 1 - 25 of 35) sorted by null

1 2

  /external/libsepol/tests/
helpers.h 38 * 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);
helpers.c 35 int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name)
54 p->policy_type = policy_type;
test-expander.c 98 mybase->policy_type = POLICY_BASE;
107 mymodules[i - 1]->policy_type = POLICY_MOD;
  /external/chromium_org/tools/grit/grit/format/policy_templates/writers/
adml_writer.py 63 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 in ('list', 'string-enum-list'):
109 elif policy_type == 'group':
111 elif policy_type == 'external':
115 raise Exception('Unknown policy type %s.' % policy_type)
plist_writer.py 91 policy_type = policy['type']
92 if policy_type == 'external':
105 self.TYPE_TO_INPUT[policy_type])
106 if policy_type in ('int-enum', 'string-enum'):
109 if policy_type == 'int-enum':
114 elif policy_type in ('list', 'string-enum-list'):
admx_writer.py 254 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 in ('list', 'string-enum-list'):
292 elif policy_type == 'group':
295 raise Exception('Unknown policy type %s.' % policy_type)
doc_writer.py 363 policy_type = policy['type']
364 if policy_type == 'main':
376 elif policy_type == 'string':
378 elif policy_type in ('int', 'int-enum'):
387 elif policy_type == 'string-enum':
389 elif policy_type in ('list', 'string-enum-list'):
391 elif policy_type == 'dict':
394 raise Exception('Unknown policy type: ' + policy_type)
  /external/chromium_org/components/policy/core/common/cloud/
component_cloud_policy_store.h 51 // |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,
component_cloud_policy_store.cc 35 const char* policy_type; member in struct:policy::__anon11337::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,
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,
    [all...]
cloud_policy_validator.cc 103 const std::string& policy_type) {
105 policy_type_ = policy_type;
407 policy_data_->policy_type() != policy_type_) {
408 LOG(ERROR) << "Wrong policy type " << policy_data_->policy_type();
cloud_policy_validator.h 145 void ValidatePolicyType(const std::string& policy_type);
  /external/chromium_org/components/policy/tools/
syntax_check_policy_template_json.py 157 def _CheckPolicySchema(self, policy, policy_type):
163 if schema_type not in TYPE_TO_SCHEMA[policy_type]:
198 policy_type = self._CheckContains(policy, 'type', str)
199 if policy_type not in policy_types:
201 'policy', policy.get('name'), policy_type)
219 if policy_type == 'group':
240 else: # policy_type != group
248 self._CheckPolicySchema(policy, policy_type)
283 if policy_type == 'main':
285 elif policy_type in ('string', 'string-enum')
    [all...]
generate_policy_source.py 88 self.policy_type, self.protobuf_type, self.policy_protobuf_type = \
650 if policy.policy_type == 'TYPE_BOOLEAN':
653 elif policy.policy_type == 'TYPE_INTEGER':
656 elif policy.policy_type == 'TYPE_STRING':
661 'enterprise defaults' % (policy.policy_type,
786 if policy.policy_type == 'TYPE_DICTIONARY':
    [all...]
  /external/chromium_org/content/shell/browser/
shell_network_delegate.cc 86 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ? local
89 net::StaticCookiePolicy policy(policy_type);
98 net::StaticCookiePolicy::Type policy_type = g_accept_all_cookies ? local
101 net::StaticCookiePolicy policy(policy_type);
  /external/checkpolicy/
checkmodule.c 47 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) {
module_compiler.c 58 if (policydbp->policy_type != POLICY_MOD) {
82 if (policydbp->policy_type == POLICY_MOD) {
825 if (policydbp->policy_type == POLICY_BASE) {
    [all...]
  /external/libsepol/src/
write.c 108 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 != POLICY_KERN &
    [all...]
policydb.c 691 (p->policy_type ==
802 if (p->policy_type != POLICY_KERN && p->policy_type != POLICY_MOD) {
3607 unsigned int policy_type, bufindex; local
    [all...]
policydb_public.c 112 p->policy_type = type;
119 switch (p->policy_type) {
  /external/chromium_org/chrome/browser/policy/test/
policy_testserver.py 459 if request.policy_type == 'google/chromeos/publicaccount':
464 if (request.policy_type in
473 elif request.policy_type == 'google/chrome/extension':
478 fetch_response.error_message = 'Invalid policy_type'
698 policy_key = msg.policy_type
701 if msg.policy_type in token_info['allowed_policy_types']:
702 if msg.policy_type in ('google/android/user',
712 elif dp is not None and msg.policy_type == 'google/chromeos/device':
718 elif msg.policy_type == 'google/chrome/extension':
746 policy_data.policy_type = msg.policy_typ
    [all...]
  /external/chromium_org/chromeos/network/
policy_util.cc 80 std::string policy_type; local
82 &policy_type);
86 if (policy_type != actual_network_type)
  /external/chromium_org/chrome/browser/extensions/activity_log/
activity_log.h 162 void SetDatabasePolicy(ActivityLogPolicy::PolicyType policy_type);
activity_log.cc 401 ActivityLogPolicy::PolicyType policy_type) {
402 if (database_policy_type_ == policy_type)
418 switch (policy_type) {
429 database_policy_type_ = policy_type;
  /external/libsepol/include/sepol/policydb/
policydb.h 467 uint32_t policy_type; member in struct:policydb
723 (((p)->policy_type == POLICY_KERN \
725 ((p)->policy_type != POLICY_KERN \
  /external/checkpolicy/test/
dismod.c 753 if (base->policy_type != POLICY_BASE) {
772 if (module.policy_type != POLICY_MOD) {
858 if (policydb.policy_type != POLICY_BASE &&
859 policydb.policy_type != POLICY_MOD) {
875 if (policydb.policy_type == POLICY_BASE) {

Completed in 1017 milliseconds

1 2