Skip to content

Commit 57f87f2

Browse files
bmax121bmax
and
bmax
authored
1. su command: compat compat-syscall for 32-bits. 2. fix: hook input_handle_event (#83)
* su command: compat compat-syscall for 32-bits * fix: hook input_handle_event * maintain pt_regs offset --------- Co-authored-by: bmax <[email protected]>
1 parent edc8642 commit 57f87f2

File tree

12 files changed

+330
-31
lines changed

12 files changed

+330
-31
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ jobs:
149149
uses: nttld/setup-ndk@v1
150150
id: setup-ndk
151151
with:
152-
ndk-version: r25b
152+
ndk-version: r26b
153153
add-to-path: true
154154

155155
- name: Make hdr

.github/workflows/build_dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ jobs:
158158
uses: nttld/setup-ndk@v1
159159
id: setup-ndk
160160
with:
161-
ndk-version: r25b
161+
ndk-version: r26b
162162
add-to-path: true
163163

164164
- name: Make hdr

kernel/include/preset.h

+9
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ struct patch_symbol
117117
uint64_t __cfi_slowpath;
118118
uint64_t copy_process;
119119
uint64_t cgroup_post_fork;
120+
uint64_t do_execveat_common;
121+
uint64_t __do_execve_file;
122+
uint64_t do_execve_common;
123+
uint64_t do_faccessat;
124+
uint64_t sys_faccessat;
125+
uint64_t sys_faccessat2;
126+
uint64_t sys_newfstatat;
127+
uint64_t vfs_statx;
128+
uint64_t vfs_fstatat;
120129
uint64_t avc_denied;
121130
uint64_t slow_avc_audit;
122131
uint64_t input_handle_event;

kernel/linux/arch/arm64/include/asm/ptrace.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static inline void forget_syscall(struct pt_regs *regs)
276276

277277
static inline unsigned long user_stack_pointer(struct pt_regs *regs)
278278
{
279-
// if (compat_user_mode(regs)) return regs->compat_sp;
279+
if (compat_user_mode(regs)) return regs->compat_sp;
280280
return regs->sp;
281281
}
282282

0 commit comments

Comments
 (0)