KernelSettingsTest: make sure suid_dumpable is 0

Change-Id: I67d56031f253765afddcb0dd1b463b9b39c44706
diff --git a/tests/tests/security/src/android/security/cts/KernelSettingsTest.java b/tests/tests/security/src/android/security/cts/KernelSettingsTest.java
index 7198241..1e6d384 100644
--- a/tests/tests/security/src/android/security/cts/KernelSettingsTest.java
+++ b/tests/tests/security/src/android/security/cts/KernelSettingsTest.java
@@ -58,6 +58,17 @@
         }
     }
 
+    /**
+     * setuid programs should not be dumpable.
+     */
+    public void testSetuidDumpable() throws IOException {
+        try {
+            assertEquals("0", getFile("/proc/sys/fs/suid_dumpable"));
+        } catch (FileNotFoundException e) {
+            // Odd. The file doesn't exist... Assume we're ok.
+        }
+    }
+
     private String getFile(String filename) throws IOException {
         BufferedReader in = null;
         try {