kernel: use uid instead of package to compare allowlist, fix #580

This commit is contained in:
weishu
2023-06-04 09:18:27 +08:00
parent da45d90605
commit 20a9c6ec0f
3 changed files with 6 additions and 8 deletions

View File

@@ -361,7 +361,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
return 0;
}
bool success = ksu_get_app_profile(&profile, false);
bool success = ksu_get_app_profile(&profile);
if (success) {
if (copy_to_user(arg3, &profile, sizeof(profile))) {
pr_err("copy profile failed\n");