Skip to content
Snippets Groups Projects
Commit 3e5054e8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Start enforcing /system file labeling"

parents 2777d18c dab131b1
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,8 @@ import sys ...@@ -11,8 +11,8 @@ import sys
def TestDataTypeViolations(pol): def TestDataTypeViolations(pol):
return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type") return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type")
# def TestSystemTypeViolations(pol): def TestSystemTypeViolations(pol):
# return pol.AssertPathTypesHaveAttr(["/system/"], [], "system_file_type") return pol.AssertPathTypesHaveAttr(["/system/"], [], "system_file_type")
def TestProcTypeViolations(pol): def TestProcTypeViolations(pol):
return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type") return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type")
...@@ -58,7 +58,7 @@ Tests = [ ...@@ -58,7 +58,7 @@ Tests = [
"TestDataTypeViolators", "TestDataTypeViolators",
"TestProcTypeViolations", "TestProcTypeViolations",
"TestSysfsTypeViolations", "TestSysfsTypeViolations",
# "TestSystemTypeViolators", "TestSystemTypeViolators",
"TestDebugfsTypeViolations", "TestDebugfsTypeViolations",
"TestVendorTypeViolations", "TestVendorTypeViolations",
"TestCoreDataTypeViolations", "TestCoreDataTypeViolations",
...@@ -107,8 +107,8 @@ if __name__ == '__main__': ...@@ -107,8 +107,8 @@ if __name__ == '__main__':
results += TestProcTypeViolations(pol) results += TestProcTypeViolations(pol)
if options.test is None or "TestSysfsTypeViolations" in options.test: if options.test is None or "TestSysfsTypeViolations" in options.test:
results += TestSysfsTypeViolations(pol) results += TestSysfsTypeViolations(pol)
# if options.test is None or "TestSystemTypeViolations" in options.test: if options.test is None or "TestSystemTypeViolations" in options.test:
# results += TestSystemTypeViolations(pol) results += TestSystemTypeViolations(pol)
if options.test is None or "TestDebugfsTypeViolations" in options.test: if options.test is None or "TestDebugfsTypeViolations" in options.test:
results += TestDebugfsTypeViolations(pol) results += TestDebugfsTypeViolations(pol)
if options.test is None or "TestVendorTypeViolations" in options.test: if options.test is None or "TestVendorTypeViolations" in options.test:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment