Skip to content

Commit

Permalink
fix allow uids
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Oct 6, 2024
1 parent bce85b1 commit f576680
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/patch/common/sucompat.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,17 @@ static int allow_uids_cb(struct kstorage *kstorage, void *udata)

int su_allow_uids(int is_user, uid_t *out_uids, int out_num)
{
int rc = 0;
struct
{
int iu;
uid_t *up;
int idx;
int out_num;
} udata = { is_user, out_uids, 0, out_num };

on_each_kstorage_elem(su_kstorage_gid, allow_uids_cb, &udata);
return rc;

return udata.idx;
}
KP_EXPORT_SYMBOL(su_allow_uids);

Expand Down

0 comments on commit f576680

Please sign in to comment.