Lines Matching refs:pol

11 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
42 ret = pol.AssertGenfsFilesystemTypesHaveAttr("debugfs", "debugfs_type")
43 ret += pol.AssertGenfsFilesystemTypesHaveAttr("tracefs", "debugfs_type")
44 ret += pol.AssertPathTypesHaveAttr(["/sys/kernel/debug/",
48 def TestVendorTypeViolations(pol): argument
55 return pol.AssertPathTypesHaveAttr(partitions, exceptions, "vendor_file_type")
57 def TestCoreDataTypeViolations(pol): argument
58 return pol.AssertPathTypesHaveAttr(["/data/"], ["/data/vendor",
61 def TestPropertyTypeViolations(pol): argument
62 return pol.AssertPropertyOwnersAreExclusive()
64 def TestAppDataTypeViolations(pol): argument
83 return pol.AssertPathTypesDoNotHaveAttr(partitions, [], "app_data_file_type",
85 def TestDmaHeapDevTypeViolations(pol): argument
86 return pol.AssertPathTypesHaveAttr(["/dev/dma_heap/"], [],
154 pol = policy.Policy(options.policy, options.file_contexts, options.libpath) variable
159 results += TestDataTypeViolations(pol)
161 results += TestProcTypeViolations(pol)
163 results += TestSysfsTypeViolations(pol)
165 results += TestSystemTypeViolations(pol)
167 results += TestDebugfsTypeViolations(pol)
169 results += TestVendorTypeViolations(pol)
171 results += TestCoreDataTypeViolations(pol)
173 results += TestPropertyTypeViolations(pol)
175 results += TestAppDataTypeViolations(pol)
177 results += TestDmaHeapDevTypeViolations(pol)