Skip to content

Commit

Permalink
execsnoop: fix the prototype for kprobe__sys_execve
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
htbegin committed Dec 9, 2017
1 parent 34b3c10 commit 3c399da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/execsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
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)
{
Expand Down

0 comments on commit 3c399da

Please sign in to comment.