Skip to content

Commit

Permalink
Update supercall.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Admirepowered authored Sep 26, 2024
1 parent 8a77305 commit 95d2ed1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kernel/patch/common/supercall.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,14 @@ static long call_su_get_path(char *__user ubuf, int buf_len)
return compat_copy_to_user(ubuf, path, len + 1);
}

static long call_su_get_ts(char *__user ubuf, int buf_len)
{
const char *path = su_get_ts();
int len = strlen(path);
if (buf_len <= len) return -ENOBUFS;
return compat_copy_to_user(ubuf, path, len + 1);
}

static long call_su_get_allow_sctx(char *__user usctx, int ulen)
{
int len = strlen(all_allow_sctx);
Expand Down

0 comments on commit 95d2ed1

Please sign in to comment.