Skip to content

Commit

Permalink
manager: remove default CAP_DAC_READ_SEARCH cap because we've process…
Browse files Browse the repository at this point in the history
…ed it in kernel.
  • Loading branch information
tiann committed Oct 21, 2023
1 parent 75b5fdf commit 8f4e7f8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions manager/app/src/main/cpp/jni.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,6 @@ Java_me_weishu_kernelsu_Natives_getAppProfile(JNIEnv *env, jobject, jstring pkg,
env->SetBooleanField(obj, allowSuField, false);
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;
}

Expand Down

0 comments on commit 8f4e7f8

Please sign in to comment.