Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1. su command: compat compat-syscall for 32-bits. 2. fix: hook input_handle_event #83

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ jobs:
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25b
ndk-version: r26b
add-to-path: true

- name: Make hdr
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25b
ndk-version: r26b
add-to-path: true

- name: Make hdr
Expand Down
1 change: 1 addition & 0 deletions kernel/base/predata.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ void reset_superkey(const char *key)
{
lib_strncpy(superkey, key, SUPER_KEY_LEN - 1);
superkey[SUPER_KEY_LEN - 1] = '\0';
dsb(ish);
}

void enable_auth_root_key(int enable)
Expand Down
9 changes: 9 additions & 0 deletions kernel/include/preset.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ struct patch_symbol
uint64_t __cfi_slowpath;
uint64_t copy_process;
uint64_t cgroup_post_fork;
uint64_t do_execveat_common;
uint64_t __do_execve_file;
uint64_t do_execve_common;
uint64_t do_faccessat;
uint64_t sys_faccessat;
uint64_t sys_faccessat2;
uint64_t sys_newfstatat;
uint64_t vfs_statx;
uint64_t vfs_fstatat;
uint64_t avc_denied;
uint64_t slow_avc_audit;
uint64_t input_handle_event;
Expand Down
2 changes: 1 addition & 1 deletion kernel/linux/arch/arm64/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ static inline void forget_syscall(struct pt_regs *regs)

static inline unsigned long user_stack_pointer(struct pt_regs *regs)
{
// if (compat_user_mode(regs)) return regs->compat_sp;
if (compat_user_mode(regs)) return regs->compat_sp;
return regs->sp;
}

Expand Down
Loading
Loading