Commit 3c399da1 authored by htbegin's avatar htbegin

execsnoop: fix the prototype for kprobe__sys_execve

For sys_execve() the type of filename parameter should be
"const char __user *" instead of "struct filename *".

The fix doesn't imply any functional change.
parent 34b3c10e
......@@ -88,7 +88,8 @@ static int submit_arg(struct pt_regs *ctx, void *ptr, struct data_t *data)
return 0;
}
int kprobe__sys_execve(struct pt_regs *ctx, struct filename *filename,
int kprobe__sys_execve(struct pt_regs *ctx,
const char __user *filename,
const char __user *const __user *__argv,
const char __user *const __user *__envp)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment