Revert "Check that tracefs files are labelled as tracefs_type"
Revert submission 1668411 Reason for revert: Suspect for b/186173384 Reverted Changes: Iaa4fce9f0:Check that tracefs files are labelled as tracefs_t... I743a81489:Exclude vendor_modprobe from debugfs neverallow re... I63a22402c:Add neverallows for debugfs access I289f2d256:Add a neverallow for debugfs mounting Change-Id: I398e7ecb0403c2044027c3145438d02b9ffaeb8a
This commit is contained in:
parent
fde9b8f069
commit
a00863e4d8
1 changed files with 1 additions and 11 deletions
|
@ -40,18 +40,11 @@ def TestSysfsTypeViolations(pol):
|
|||
|
||||
def TestDebugfsTypeViolations(pol):
|
||||
ret = pol.AssertGenfsFilesystemTypesHaveAttr("debugfs", "debugfs_type")
|
||||
ret += pol.AssertGenfsFilesystemTypesHaveAttr("tracefs", "debugfs_type")
|
||||
ret += pol.AssertPathTypesHaveAttr(["/sys/kernel/debug/",
|
||||
"/sys/kernel/tracing"], [], "debugfs_type")
|
||||
return ret
|
||||
|
||||
def TestTracefsTypeViolations(pol):
|
||||
ret = pol.AssertGenfsFilesystemTypesHaveAttr("tracefs", "tracefs_type")
|
||||
ret += pol.AssertPathTypesHaveAttr(["/sys/kernel/tracing"], [], "tracefs_type")
|
||||
ret += pol.AssertPathTypesDoNotHaveAttr(["/sys/kernel/debug"],
|
||||
["/sys/kernel/debug/tracing"], "tracefs_type",
|
||||
[])
|
||||
return ret
|
||||
|
||||
def TestVendorTypeViolations(pol):
|
||||
partitions = ["/vendor/", "/odm/"]
|
||||
exceptions = [
|
||||
|
@ -118,7 +111,6 @@ Tests = [
|
|||
"TestSysfsTypeViolations",
|
||||
"TestSystemTypeViolators",
|
||||
"TestDebugfsTypeViolations",
|
||||
"TestTracefsTypeViolations",
|
||||
"TestVendorTypeViolations",
|
||||
"TestCoreDataTypeViolations",
|
||||
"TestPropertyTypeViolations",
|
||||
|
@ -173,8 +165,6 @@ if __name__ == '__main__':
|
|||
results += TestSystemTypeViolations(pol)
|
||||
if options.test is None or "TestDebugfsTypeViolations" in options.test:
|
||||
results += TestDebugfsTypeViolations(pol)
|
||||
if options.test is None or "TestTracefsTypeViolations" in options.test:
|
||||
results += TestTracefsTypeViolations(pol)
|
||||
if options.test is None or "TestVendorTypeViolations" in options.test:
|
||||
results += TestVendorTypeViolations(pol)
|
||||
if options.test is None or "TestCoreDataTypeViolations" in options.test:
|
||||
|
|
Loading…
Reference in a new issue