summaryrefslogtreecommitdiffstats
path: root/core/java/android/os
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2015-03-13 14:09:26 -0400
committerStephen Smalley <sds@tycho.nsa.gov>2015-03-13 14:09:26 -0400
commit16d1cce8ffe632c1283375beb4c82c67c43e13dd (patch)
treebb30713f83e1506fc337892c74625b178a000137 /core/java/android/os
parent53729e2933540307b090e64ee89cbae26c67de8f (diff)
downloadframeworks_base-16d1cce8ffe632c1283375beb4c82c67c43e13dd.zip
frameworks_base-16d1cce8ffe632c1283375beb4c82c67c43e13dd.tar.gz
frameworks_base-16d1cce8ffe632c1283375beb4c82c67c43e13dd.tar.bz2
Drop unusable SELinux APIs.
setSELinuxEnforce is not allowed by policy. get/setBooleanValue and getBooleanNames are moot since SELinux policy booleans are forbidden by CTS. Change-Id: I512953edd1c38828efce698ae8475603775c32e8 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'core/java/android/os')
-rw-r--r--core/java/android/os/SELinux.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/core/java/android/os/SELinux.java b/core/java/android/os/SELinux.java
index 84aa427..2773da5 100644
--- a/core/java/android/os/SELinux.java
+++ b/core/java/android/os/SELinux.java
@@ -50,13 +50,6 @@ public class SELinux {
public static final native boolean isSELinuxEnforced();
/**
- * Set whether SELinux is permissive or enforcing.
- * @param value representing whether to set SELinux to enforcing
- * @return a boolean representing whether the desired mode was set
- */
- public static final native boolean setSELinuxEnforce(boolean value);
-
- /**
* Sets the security context for newly created file objects.
* @param context a security context given as a String.
* @return a boolean indicating whether the operation succeeded.
@@ -99,27 +92,6 @@ public class SELinux {
public static final native String getPidContext(int pid);
/**
- * Gets a list of the SELinux boolean names.
- * @return an array of strings containing the SELinux boolean names.
- */
- public static final native String[] getBooleanNames();
-
- /**
- * Gets the value for the given SELinux boolean name.
- * @param name The name of the SELinux boolean.
- * @return a boolean indicating whether the SELinux boolean is set.
- */
- public static final native boolean getBooleanValue(String name);
-
- /**
- * Sets the value for the given SELinux boolean name.
- * @param name The name of the SELinux boolean.
- * @param value The new value of the SELinux boolean.
- * @return a boolean indicating whether or not the operation succeeded.
- */
- public static final native boolean setBooleanValue(String name, boolean value);
-
- /**
* Check permissions between two security contexts.
* @param scon The source or subject security context.
* @param tcon The target or object security context.