Skip to content

Commit

Permalink
ksud: [Fix] grant root to the shell in debug mode (#1853)
Browse files Browse the repository at this point in the history
Failed to check app_profile version
  • Loading branch information
RobinChenJP authored Jul 6, 2024
1 parent 17c7208 commit 56c3954
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/allowlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void ksu_show_allow_list(void)
static void ksu_grant_root_to_shell()
{
struct app_profile profile = {
.version = KSU_APP_PROFILE_VER;
.allow_su = true,
.current_uid = 2000,
};
Expand Down

1 comment on commit 56c3954

@longhuan1999
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不应该是 .version = FILE_FORMAT_VERSION ?

Please sign in to comment.