OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:policy_path
(Results
1 - 11
of
11
) sorted by null
/external/libbrillo/policy/
policy_util.cc
13
const base::FilePath&
policy_path
,
18
if (!base::PathExists(
policy_path
)) {
22
if (!base::ReadFileToString(
policy_path
, policy_data_str_out)) {
23
PLOG(ERROR) << "Could not read policy off disk at " <<
policy_path
.value();
28
LOG(ERROR) << "Empty policy file at " <<
policy_path
.value();
34
<<
policy_path
.value();
policy_util.h
26
// Reads and parses the policy data from |
policy_path
|. Returns the details
32
const base::FilePath&
policy_path
,
resilient_policy_util.cc
39
bool ParseResilientPolicyFilePath(const base::FilePath&
policy_path
,
42
if (!base::StartsWith(
policy_path
.value(), default_policy_path.value(),
47
if (
policy_path
== default_policy_path) {
53
policy_path
.value().substr(default_policy_path.value().size());
resilient_policy_util.h
29
// Returns whether the |
policy_path
| file is a resilient file based on the name
34
const base::FilePath&
policy_path
,
device_policy_impl.h
103
void set_policy_path_for_testing(const base::FilePath&
policy_path
) {
104
policy_path_ =
policy_path
;
115
bool VerifyPolicyFile(const base::FilePath&
policy_path
);
120
// Loads policy off of disk from |
policy_path
| into |policy_|. Returns true if
121
// the |
policy_path
| is present on disk and loading it is successful.
122
bool LoadPolicyFromFile(const base::FilePath&
policy_path
);
device_policy_impl.cc
189
const base::FilePath&
policy_path
= map_pair.second;
local
190
if (LoadPolicyFromFile(
policy_path
)) {
662
bool DevicePolicyImpl::VerifyPolicyFile(const base::FilePath&
policy_path
) {
668
if (!base::PathExists(
policy_path
) || !base::PathExists(keyfile_path_)) {
674
stat(
policy_path
.value().c_str(), &file_stat);
706
bool DevicePolicyImpl::LoadPolicyFromFile(const base::FilePath&
policy_path
) {
708
if (policy::LoadPolicyFromPath(
policy_path
, &policy_data_str, &policy_) !=
731
if (verify_policy && !VerifyPolicyFile(
policy_path
)) {
/external/selinux/python/audit2allow/
sepolgen-ifgen
54
parser.add_option("-p", "--policy", dest="
policy_path
")
82
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/autotest/client/site_tests/policy_ExtensionPolicy/
policy_ExtensionPolicy.py
27
policy_path
= os.path.join(self.enterprise_dir, POLICY_FILE)
29
self.CHECKSUM = self.sha256sum(
policy_path
)
/external/selinux/libselinux/src/
selinux_config.c
352
static char
policy_path
[PATH_MAX];
local
355
snprintf(
policy_path
, sizeof(
policy_path
), "%s/policy", selinux_mnt);
356
if (access(
policy_path
, F_OK) == 0 ) {
357
return
policy_path
;
363
snprintf(
policy_path
, sizeof(
policy_path
), "%s.%d",
365
} while ((rc = access(
policy_path
, F_OK)) && --vers > 0);
368
return
policy_path
;
/external/libbrillo/policy/tests/
libpolicy_unittest.cc
31
const base::FilePath&
policy_path
,
37
device_policy->set_policy_path_for_testing(
policy_path
);
/external/selinux/python/sepolicy/sepolicy/
__init__.py
120
def policy_sortkey(
policy_path
):
122
extension =
policy_path
.rsplit('/policy.', 1)[1]
124
return int(extension),
policy_path
127
return 0,
policy_path
[
all
...]
Completed in 197 milliseconds