Lines Matching refs:pol
11 def TestDataTypeViolations(pol): argument
12 return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type")
14 def TestSystemTypeViolations(pol): argument
15 return pol.AssertPathTypesHaveAttr(["/system/"], [], "system_file_type")
17 def TestProcTypeViolations(pol): argument
18 return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type")
20 def TestSysfsTypeViolations(pol): argument
21 ret = pol.AssertGenfsFilesystemTypesHaveAttr("sysfs", "sysfs_type")
22 ret += pol.AssertPathTypesHaveAttr(["/sys/"], ["/sys/kernel/debug/",
26 def TestDebugfsTypeViolations(pol): argument
27 ret = pol.AssertGenfsFilesystemTypesHaveAttr("debugfs", "debugfs_type")
28 ret += pol.AssertGenfsFilesystemTypesHaveAttr("tracefs", "debugfs_type")
29 ret += pol.AssertPathTypesHaveAttr(["/sys/kernel/debug/",
33 def TestVendorTypeViolations(pol): argument
34 return pol.AssertPathTypesHaveAttr(["/vendor/"], [], "vendor_file_type")
36 def TestCoreDataTypeViolations(pol): argument
37 return pol.AssertPathTypesHaveAttr(["/data/"], ["/data/vendor",
100 pol = policy.Policy(options.policy, options.file_contexts, options.libpath) variable
105 results += TestDataTypeViolations(pol)
107 results += TestProcTypeViolations(pol)
109 results += TestSysfsTypeViolations(pol)
111 results += TestSystemTypeViolations(pol)
113 results += TestDebugfsTypeViolations(pol)
115 results += TestVendorTypeViolations(pol)
117 results += TestCoreDataTypeViolations(pol)