Home
last modified time | relevance | path

Searched refs:pol (Results 1 – 4 of 4) sorted by relevance

/system/sepolicy/tests/
Dsepolicy_tests.py11 def TestDataTypeViolations(pol): argument
12 return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type")
14 def TestSystemTypeViolations(pol): argument
30 return pol.AssertPathTypesHaveAttr(partitions, exceptions, "system_file_type")
32 def TestProcTypeViolations(pol): argument
33 return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type")
35 def TestSysfsTypeViolations(pol): argument
36 ret = pol.AssertGenfsFilesystemTypesHaveAttr("sysfs", "sysfs_type")
37 ret += pol.AssertPathTypesHaveAttr(["/sys/"], ["/sys/kernel/debug/",
41 def TestDebugfsTypeViolations(pol): argument
[all …]
Dtreble_sepolicy_tests.py56 pol = None variable
67 def GetAllDomains(pol): argument
69 for result in pol.QueryTypeAttribute("domain", True):
128 def GetDomainEntrypoints(pol): argument
130 for x in pol.QueryExpandedTERule(tclass=set(["file"]), perms=set(["entrypoint"])):
140 entrypointpath = pol.QueryFc(x.tctx)
147 def GetAttributes(pol): argument
150 for result in pol.QueryTypeAttribute(domain, False):
153 def GetAllTypes(pol, oldpol): argument
156 alltypes = pol.GetAllTypes(False)
[all …]
Dsearchpolicy.py38 pol = policy.Policy(args.policy, None, args.libpath) variable
57 TERules = pol.QueryTERule(scontext=scontext,
/system/sepolicy/tools/
Dcheck_seapp.c172 static policy_info pol = { variable
407 if (!pol.policy_file) { in validate_domain()
411 if (!find_type(pol.db, value, TYPE_TYPE)) { in validate_domain()
427 if (!pol.policy_file) { in validate_type()
431 type_datum_t *type_dat = find_type(pol.db, value, TYPE_TYPE); in validate_type()
437 type_datum_t *attrib_dat = find_type(pol.db, APP_DATA_REQUIRED_ATTRIB, in validate_type()
444 if (!type_has_attribute(pol.db, type_dat, attrib_dat)) { in validate_type()
460 if (!pol.policy_file) { in validate_selinux_level()
464 int ret = sepol_mls_check(pol.handle, pol.db, value); in validate_selinux_level()
934 if (pol.policy_file_name) { in init()
[all …]