Re: [PATCH v15 2/5] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-22 Thread Yonghong Song
On 10/22/19 12:17 PM, Carlos Neira wrote: > New bpf helper bpf_get_ns_current_pid_tgid, > This helper will return pid and tgid from current task > which namespace matches dev_t and inode number provided, > this will allows us to instrument a process inside a container. > > Signed-off-by: Carlos

[PATCH v15 2/5] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-22 Thread Carlos Neira
New bpf helper bpf_get_ns_current_pid_tgid, This helper will return pid and tgid from current task which namespace matches dev_t and inode number provided, this will allows us to instrument a process inside a container. Signed-off-by: Carlos Neira --- include/linux/bpf.h | 1 + include/uap