kernel: fix CMD_GET_ALLOW_LIST error

This commit is contained in:
weishu
2023-06-03 19:22:59 +08:00
parent 75721be8c0
commit 82d5ec3cc1

View File

@@ -159,7 +159,7 @@ bool ksu_get_allow_list(int *array, int *length, bool allow)
p = list_entry(pos, struct perm_data, list); p = list_entry(pos, struct perm_data, list);
// pr_info("get_allow_list uid: %d allow: %d\n", p->uid, p->allow); // pr_info("get_allow_list uid: %d allow: %d\n", p->uid, p->allow);
if (p->profile.allow_su == allow) { if (p->profile.allow_su == allow) {
array[i++] = p->profile.allow_su; array[i++] = p->profile.current_uid;
} }
} }
*length = i; *length = i;