From 0d5b9540865e041f83c8000f68ea1e0ddd0138ee Mon Sep 17 00:00:00 2001
From: Tri Vo <trong@google.com>
Date: Wed, 28 Mar 2018 23:13:14 +0000
Subject: [PATCH] Revert "Test that /proc files have proc_type attribute."

This reverts commit 4e79b64e05c342d387d7a597f87a74f184fdf7da.

Reason for revert: broke something internal

Change-Id: Iec5f2c17fc768424c0b82936a069e42de0b66555
---
 tests/sepolicy_tests.py | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/tests/sepolicy_tests.py b/tests/sepolicy_tests.py
index 6f6914759..b09c60bc3 100644
--- a/tests/sepolicy_tests.py
+++ b/tests/sepolicy_tests.py
@@ -11,9 +11,6 @@ import sys
 def TestDataTypeViolations(pol):
     return pol.AssertPathTypesHaveAttr(["/data/"], [], "data_file_type")
 
-def TestProcTypeViolations(pol):
-    return pol.AssertGenfsFilesystemTypesHaveAttr("proc", "proc_type")
-
 def TestSysfsTypeViolations(pol):
     ret = pol.AssertGenfsFilesystemTypesHaveAttr("sysfs", "sysfs_type")
     ret += pol.AssertPathTypesHaveAttr(["/sys/"], ["/sys/kernel/debug/",
@@ -51,14 +48,9 @@ class MultipleOption(Option):
         else:
             Option.take_action(self, action, dest, opt, value, values, parser)
 
-Tests = [
-    "TestDataTypeViolators",
-    "TestProcTypeViolations",
-    "TestSysfsTypeViolations",
-    "TestDebugfsTypeViolations",
-    "TestVendorTypeViolations",
-    "TestCoreDataTypeViolations",
-]
+Tests = ["TestDataTypeViolators", "TestSysfsTypeViolations",
+        "TestDebugfsTypeViolations", "TestVendorTypeViolations",
+        "TestCoreDataTypeViolations"]
 
 if __name__ == '__main__':
     usage = "sepolicy_tests -l $(ANDROID_HOST_OUT)/lib64/libsepolwrap.so "
@@ -99,8 +91,6 @@ if __name__ == '__main__':
     # If an individual test is not specified, run all tests.
     if options.test is None or "TestDataTypeViolations" in options.test:
         results += TestDataTypeViolations(pol)
-    if options.test is None or "TestProcTypeViolations" in options.test:
-        results += TestProcTypeViolations(pol)
     if options.test is None or "TestSysfsTypeViolations" in options.test:
         results += TestSysfsTypeViolations(pol)
     if options.test is None or "TestDebugfsTypeViolations" in options.test:
-- 
GitLab