Skip to content

Commit

Permalink
[cgroupv2_freeze] hook_wrap2
Browse files Browse the repository at this point in the history
  • Loading branch information
lzghzr committed Aug 2, 2024
1 parent f8503ab commit 7accb7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgroupv2_freeze/cgroupv2_freeze.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static void proc_pid_wchan_before(hook_fargs4_t* args, void* udata) {
}
}

static void call_usermodehelper_exec_before(hook_fargs1_t* args, void* udata) {
static void call_usermodehelper_exec_before(hook_fargs2_t* args, void* udata) {
struct subprocess_info* sub_info = (struct subprocess_info*)args->arg0;
if (!sub_info)
return;
Expand All @@ -350,7 +350,7 @@ static void run_cmd(char* cmd[]) {
sel = *selinux_enforcing;
*selinux_enforcing = false;
} else {
err = hook_wrap1(kf_call_usermodehelper_exec, call_usermodehelper_exec_before, NULL, NULL);
err = hook_wrap2(kf_call_usermodehelper_exec, call_usermodehelper_exec_before, NULL, NULL);
sel = selinux_state->enforcing;
selinux_state->enforcing = false;
}
Expand Down

0 comments on commit 7accb7d

Please sign in to comment.