Home
last modified time | relevance | path

Searched refs:policy_path (Results 1 – 11 of 11) sorted by relevance

/external/libbrillo/policy/
Dpolicy_util.cc13 const base::FilePath& policy_path, in LoadPolicyFromPath() argument
18 if (!base::PathExists(policy_path)) { in LoadPolicyFromPath()
22 if (!base::ReadFileToString(policy_path, policy_data_str_out)) { in LoadPolicyFromPath()
23 PLOG(ERROR) << "Could not read policy off disk at " << policy_path.value(); in LoadPolicyFromPath()
28 LOG(ERROR) << "Empty policy file at " << policy_path.value(); in LoadPolicyFromPath()
34 << policy_path.value(); in LoadPolicyFromPath()
Dresilient_policy_util.cc39 bool ParseResilientPolicyFilePath(const base::FilePath& policy_path, in ParseResilientPolicyFilePath() argument
42 if (!base::StartsWith(policy_path.value(), default_policy_path.value(), in ParseResilientPolicyFilePath()
47 if (policy_path == default_policy_path) { in ParseResilientPolicyFilePath()
53 policy_path.value().substr(default_policy_path.value().size()); in ParseResilientPolicyFilePath()
Ddevice_policy_impl.h103 void set_policy_path_for_testing(const base::FilePath& policy_path) { in set_policy_path_for_testing() argument
104 policy_path_ = policy_path; in set_policy_path_for_testing()
115 bool VerifyPolicyFile(const base::FilePath& policy_path);
122 bool LoadPolicyFromFile(const base::FilePath& policy_path);
Ddevice_policy_impl.cc189 const base::FilePath& policy_path = map_pair.second; in LoadPolicy() local
190 if (LoadPolicyFromFile(policy_path)) { in LoadPolicy()
662 bool DevicePolicyImpl::VerifyPolicyFile(const base::FilePath& policy_path) { in VerifyPolicyFile() argument
668 if (!base::PathExists(policy_path) || !base::PathExists(keyfile_path_)) { in VerifyPolicyFile()
674 stat(policy_path.value().c_str(), &file_stat); in VerifyPolicyFile()
706 bool DevicePolicyImpl::LoadPolicyFromFile(const base::FilePath& policy_path) { in LoadPolicyFromFile() argument
708 if (policy::LoadPolicyFromPath(policy_path, &policy_data_str, &policy_) != in LoadPolicyFromFile()
731 if (verify_policy && !VerifyPolicyFile(policy_path)) { in LoadPolicyFromFile()
Dpolicy_util.h32 const base::FilePath& policy_path,
Dresilient_policy_util.h34 const base::FilePath& policy_path,
/external/selinux/python/audit2allow/
Dsepolgen-ifgen82 def get_attrs(policy_path, attr_helper):
84 if not policy_path:
85 policy_path = get_policy()
86 if not policy_path:
98 ret = subprocess.Popen([attr_helper, policy_path, outfile.name], stdout=fd).wait()
132 attrs = get_attrs(options.policy_path, options.attr_helper)
/external/selinux/libselinux/src/
Dselinux_config.c352 static char policy_path[PATH_MAX]; in hidden_def() local
355 snprintf(policy_path, sizeof(policy_path), "%s/policy", selinux_mnt); in hidden_def()
356 if (access(policy_path, F_OK) == 0 ) { in hidden_def()
357 return policy_path; in hidden_def()
363 snprintf(policy_path, sizeof(policy_path), "%s.%d", in hidden_def()
365 } while ((rc = access(policy_path, F_OK)) && --vers > 0); in hidden_def()
368 return policy_path; in hidden_def()
/external/autotest/client/site_tests/policy_ExtensionPolicy/
Dpolicy_ExtensionPolicy.py27 policy_path = os.path.join(self.enterprise_dir, POLICY_FILE)
29 self.CHECKSUM = self.sha256sum(policy_path)
/external/libbrillo/policy/tests/
Dlibpolicy_unittest.cc31 const base::FilePath& policy_path, in CreateDevicePolicyImpl() argument
37 device_policy->set_policy_path_for_testing(policy_path); in CreateDevicePolicyImpl()
/external/selinux/python/sepolicy/sepolicy/
D__init__.py120 def policy_sortkey(policy_path): argument
122 extension = policy_path.rsplit('/policy.', 1)[1]
124 return int(extension), policy_path
127 return 0, policy_path