summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-18 02:42:27 +0000
committerandroid-build-merger <android-build-merger@google.com>2014-12-18 02:42:27 +0000
commitfcc0788419daf9a9697bdc42a3fc42f452ba1c9b (patch)
tree4d5bb53a0ddc58065e388bed9b28a5b6c101c966
parent3fa2307254a5f52369d0074fb87ca9cbc443d182 (diff)
parent9962ed55759336642cfaba27e8b2a47822f562fe (diff)
downloadframeworks_base-fcc0788419daf9a9697bdc42a3fc42f452ba1c9b.zip
frameworks_base-fcc0788419daf9a9697bdc42a3fc42f452ba1c9b.tar.gz
frameworks_base-fcc0788419daf9a9697bdc42a3fc42f452ba1c9b.tar.bz2
am 93241de7: Merge "Remove a bitrotted test." automerge: ba6982a
automerge: 9962ed5 * commit '9962ed55759336642cfaba27e8b2a47822f562fe': Remove a bitrotted test.
-rw-r--r--core/tests/coretests/src/android/os/SELinuxTest.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/core/tests/coretests/src/android/os/SELinuxTest.java b/core/tests/coretests/src/android/os/SELinuxTest.java
deleted file mode 100644
index 9b63a6b..0000000
--- a/core/tests/coretests/src/android/os/SELinuxTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package android.os;
-
-import android.os.Process;
-import android.os.SELinux;
-import android.test.AndroidTestCase;
-import static junit.framework.Assert.assertEquals;
-
-public class SELinuxTest extends AndroidTestCase {
-
- public void testgetFileCon() {
- if(SELinux.isSELinuxEnabled() == false)
- return;
-
- String ctx = SELinux.getFileContext("/system/bin/toolbox");
- assertEquals(ctx, "u:object_r:system_file:s0");
- }
-
- public void testgetCon() {
- if(SELinux.isSELinuxEnabled() == false)
- return;
-
- String mycon = SELinux.getContext();
- assertEquals(mycon, "u:r:untrusted_app:s0:c33");
- }
-
- public void testgetPidCon() {
- if(SELinux.isSELinuxEnabled() == false)
- return;
-
- String mycon = SELinux.getPidContext(Process.myPid());
- assertEquals(mycon, "u:r:untrusted_app:s0:c33");
- }
-
- public void testcheckSELinuxAccess() {
- if(SELinux.isSELinuxEnabled() == false)
- return;
-
- String mycon = SELinux.getContext();
- boolean ret;
- ret = SELinux.checkSELinuxAccess(mycon, mycon, "process", "fork");
- assertEquals(ret,"true");
- ret = SELinux.checkSELinuxAccess(mycon, mycon, "memprotect", "mmap_zero");
- assertEquals(ret,"true");
- }
-}