summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRichard Haines <richard_c_haines@btinternet.com>2013-05-22 13:25:15 +0100
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-18 21:03:13 +0100
commit7abdd8838d6a5ced0d5f0554692a79a3d2368f5d (patch)
tree2a2119f86548618772251eb0106ae24b379a7db3 /core
parent18f5453ee1c0e63b6feea00f7d8595898cb8aa27 (diff)
downloadframeworks_base-7abdd8838d6a5ced0d5f0554692a79a3d2368f5d.zip
frameworks_base-7abdd8838d6a5ced0d5f0554692a79a3d2368f5d.tar.gz
frameworks_base-7abdd8838d6a5ced0d5f0554692a79a3d2368f5d.tar.bz2
Fix SELinux.java doc errors
This fixes five errors when building the Java docs. It also removes two obsolete lines. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com> Change-Id: I814411cbc8d16eaed99a1389f5487529e36e647b
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/SELinux.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/java/android/os/SELinux.java b/core/java/android/os/SELinux.java
index c05a974..c9dd5d7 100644
--- a/core/java/android/os/SELinux.java
+++ b/core/java/android/os/SELinux.java
@@ -45,7 +45,7 @@ public class SELinux {
/**
* Set whether SELinux is permissive or enforcing.
- * @param boolean representing whether to set SELinux to 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);
@@ -60,7 +60,7 @@ public class SELinux {
/**
* Change the security context of an existing file object.
* @param path representing the path of file object to relabel.
- * @param con new security context given as a String.
+ * @param context new security context given as a String.
* @return a boolean indicating whether the operation succeeded.
*/
public static final native boolean setFileContext(String path, String context);
@@ -87,8 +87,6 @@ public class SELinux {
/**
* Gets the security context of a given process id.
- * Use of this function is discouraged for Binder transactions.
- * Use Binder.getCallingSecctx() instead.
* @param pid an int representing the process id to check.
* @return a String representing the security context of the given pid.
*/
@@ -102,15 +100,15 @@ public class SELinux {
/**
* Gets the value for the given SELinux boolean name.
- * @param String The name of the SELinux boolean.
+ * @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 String The name of the SELinux boolean.
- * @param Boolean The new value of the SELinux boolean.
+ * @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);