From: Gianluca Borello
Date: Wed, 18 Jan 2017 17:55:49 +
> Provide a simple helper with the same semantics of strncpy_from_unsafe():
>
> int bpf_probe_read_str(void *dst, int size, const void *unsafe_addr)
>
> This gives more flexibility to a bpf program.
...
> Signed-off-by: Gianluca Bore
Provide a simple helper with the same semantics of strncpy_from_unsafe():
int bpf_probe_read_str(void *dst, int size, const void *unsafe_addr)
This gives more flexibility to a bpf program. A typical use case is
intercepting a file name during sys_open(). The current approach is:
SEC("kprobe/sys_