summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2014-02-07 09:16:12 -0500
committerStephen Smalley <sds@tycho.nsa.gov>2014-02-07 09:36:25 -0500
commitd8fa586099b73cc8b49e51c675cc8807ef65a4a2 (patch)
tree0efcb60fe85fe5c1728210b50c798ad7978df4c1
parent449273e2d575041ffe1a5d435666d36923de888b (diff)
downloadframeworks_base-d8fa586099b73cc8b49e51c675cc8807ef65a4a2.zip
frameworks_base-d8fa586099b73cc8b49e51c675cc8807ef65a4a2.tar.gz
frameworks_base-d8fa586099b73cc8b49e51c675cc8807ef65a4a2.tar.bz2
Convert all selinux_android_restorecon and _setfilecon calls to new API.
libselinux selinux_android_restorecon API is changing to the more general interface with flags and dropping the older variants. Also get rid of the old, no longer used selinux_android_setfilecon API and rename selinux_android_setfilecon2 to it as it is the only API in use. Change-Id: I1e71ec398ccdc24cac4ec76f1b858d0f680f4925 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
-rw-r--r--core/jni/android_os_SELinux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android_os_SELinux.cpp b/core/jni/android_os_SELinux.cpp
index 2b85fef..ebacb90 100644
--- a/core/jni/android_os_SELinux.cpp
+++ b/core/jni/android_os_SELinux.cpp
@@ -415,7 +415,7 @@ static jboolean native_restorecon(JNIEnv *env, jobject, jstring pathnameStr) {
return false;
}
- int ret = selinux_android_restorecon(pathname.c_str());
+ int ret = selinux_android_restorecon(pathname.c_str(), 0);
ALOGV("restorecon(%s) => %d", pathname.c_str(), ret);
return (ret == 0);
}