Skip to content

Commit

Permalink
Ifdef __access_remote_vm since the function was made publicly accessi…
Browse files Browse the repository at this point in the history
…ble (draios#711)

since kernel >=4.9.1. Fixes draios#710.

sysdig-CLA-1.0-signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
  • Loading branch information
hhoffstaette authored and Damian Myerscough committed Mar 3, 2017
1 parent dcacde7 commit 32d000f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,8 +1737,10 @@ TRACEPOINT_PROBE(syscall_exit_probe, struct pt_regs *regs, long ret)
}
}

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 1)
int __access_remote_vm(struct task_struct *t, struct mm_struct *mm, unsigned long addr,
void *buf, int len, int write);
#endif

TRACEPOINT_PROBE(syscall_procexit_probe, struct task_struct *p)
{
Expand Down

0 comments on commit 32d000f

Please sign in to comment.