Re: [PATCH v13 2/4] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-09 Thread Carlos Antonio Neira Bustos
On Wed, Oct 09, 2019 at 12:50:10PM -0700, Andrii Nakryiko wrote: > On Wed, Oct 9, 2019 at 10:45 AM Carlos Antonio Neira Bustos > wrote: > > > > On Wed, Oct 09, 2019 at 09:14:42AM -0700, Andrii Nakryiko wrote: > > > On Wed, Oct 9, 2019 at 8:27 AM Carlos Neira > > > wrote: > > > > > > > > New bpf

Re: [PATCH v13 2/4] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-09 Thread Andrii Nakryiko
On Wed, Oct 9, 2019 at 10:45 AM Carlos Antonio Neira Bustos wrote: > > On Wed, Oct 09, 2019 at 09:14:42AM -0700, Andrii Nakryiko wrote: > > On Wed, Oct 9, 2019 at 8:27 AM Carlos Neira wrote: > > > > > > New bpf helper bpf_get_ns_current_pid_tgid, > > > This helper will return pid and tgid from cu

Re: [PATCH v13 2/4] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-09 Thread Carlos Antonio Neira Bustos
On Wed, Oct 09, 2019 at 09:14:42AM -0700, Andrii Nakryiko wrote: > On Wed, Oct 9, 2019 at 8:27 AM 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

Re: [PATCH v13 2/4] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-09 Thread Andrii Nakryiko
On Wed, Oct 9, 2019 at 8:27 AM 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

[PATCH v13 2/4] bpf: added new helper bpf_get_ns_current_pid_tgid

2019-10-09 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