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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user