manager: remove default CAP_DAC_READ_SEARCH cap because we've processed it in kernel.
This commit is contained in:
@@ -156,13 +156,6 @@ Java_me_weishu_kernelsu_Natives_getAppProfile(JNIEnv *env, jobject, jstring pkg,
|
|||||||
env->SetBooleanField(obj, allowSuField, false);
|
env->SetBooleanField(obj, allowSuField, false);
|
||||||
env->SetBooleanField(obj, nonRootUseDefaultField, true);
|
env->SetBooleanField(obj, nonRootUseDefaultField, true);
|
||||||
|
|
||||||
jobject capList = env->GetObjectField(obj, capabilitiesField);
|
|
||||||
int DEFAULT_CAPS[] = {CAP_DAC_READ_SEARCH};
|
|
||||||
|
|
||||||
for (auto i: DEFAULT_CAPS) {
|
|
||||||
addIntToList(env, capList, i);
|
|
||||||
}
|
|
||||||
|
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user