Searched refs:pol (Results 1 – 6 of 6) sorted by relevance
/system/sepolicy/tests/ |
D | sepolicy_tests.py | 30 def TestDataTypeViolations(pol): argument 31 return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type") 33 def TestSystemTypeViolations(pol): argument 49 return pol.AssertPathTypesHaveAttr(partitions, exceptions, "system_file_type") 51 def TestBpffsTypeViolations(pol): argument 52 return pol.AssertGenfsFilesystemTypesHaveAttr("bpf", "bpffs_type") 54 def TestProcTypeViolations(pol): argument 55 return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type") 57 def TestSysfsTypeViolations(pol): argument 58 ret = pol.AssertGenfsFilesystemTypesHaveAttr("sysfs", "sysfs_type") [all …]
|
D | apex_sepolicy_tests_test.py | 33 cls.pol = policy.Policy(policy_path, None, lib_path) 42 def pol(self): member in ApexSepolicyTests 43 return self.__class__.pol 46 errors = apex.check_line(self.pol, line, apex.all_rules) 51 errors = apex.check_line(self.pol, line, apex.all_rules)
|
D | apex_sepolicy_tests.py | 111 def check_rule(pol, path: str, tcontext: str, rule: Rule) -> List[str]: argument 118 te_rules = list(pol.QueryTERule(scontext={s}, 127 if tcontext not in pol.GetAllTypes(False): 162 def check_line(pol: policy.Policy, line: str, rules) -> List[str]: 182 errors.extend(check_rule(pol, path, tcontext, rule)) 205 pol = policy.Policy(policy_path, None, lib_path) 215 errors.extend(check_line(pol, line, rules))
|
D | searchpolicy.py | 52 pol = policy.Policy(args.policy, None, args.libpath) variable 71 TERules = pol.QueryTERule(scontext=scontext,
|
D | policy.py | 545 self.pol = None 554 for result in self.pol.QueryTypeAttribute("domain", True): 610 for x in self.pol.QueryExpandedTERule(tclass=set(["file"]), perms=set(["entrypoint"])): 620 entrypointpath = self.pol.QueryFc(x.tctx) 630 for result in self.pol.QueryTypeAttribute(domain, False): 633 def setup(self, pol): argument 634 self.pol = pol
|
/system/sepolicy/tools/ |
D | check_seapp.c | 185 static policy_info pol = { variable 436 if (!pol.policy_file) { in validate_domain() 440 type_datum_t *type_dat = find_type(pol.db, value, TYPE_TYPE); in validate_domain() 446 if (pol.vendor) { in validate_domain() 447 type_datum_t *attrib_dat = find_type(pol.db, COREDOMAIN, TYPE_ATTRIB); in validate_domain() 453 if (type_has_attribute(pol.db, type_dat, attrib_dat)) { in validate_domain() 476 if (!pol.policy_file) { in validate_type() 480 type_datum_t *type_dat = find_type(pol.db, value, TYPE_TYPE); in validate_type() 486 type_datum_t *attrib_dat = find_type(pol.db, APP_DATA_REQUIRED_ATTRIB, in validate_type() 493 if (!type_has_attribute(pol.db, type_dat, attrib_dat)) { in validate_type() [all …]
|