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

2019-10-03 Thread Carlos Antonio Neira Bustos
On Thu, Oct 03, 2019 at 10:30:06AM -0700, Andrii Nakryiko wrote: > On Thu, Oct 3, 2019 at 8:01 AM Carlos Antonio Neira Bustos > wrote: > > > > On Wed, Oct 02, 2019 at 12:52:29PM +0200, Daniel Borkmann wrote: > > > On 10/1/19 11:41 PM, Carlos Neira wrote: > > > > New bpf helper bpf_get_ns_current_p

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

2019-10-03 Thread Andrii Nakryiko
On Thu, Oct 3, 2019 at 8:01 AM Carlos Antonio Neira Bustos wrote: > > On Wed, Oct 02, 2019 at 12:52:29PM +0200, Daniel Borkmann wrote: > > On 10/1/19 11:41 PM, Carlos Neira wrote: > > > New bpf helper bpf_get_ns_current_pid_tgid, > > > This helper will return pid and tgid from current task > > > w

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

2019-10-03 Thread Carlos Antonio Neira Bustos
On Wed, Oct 02, 2019 at 12:52:29PM +0200, Daniel Borkmann wrote: > On 10/1/19 11:41 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

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

2019-10-02 Thread Daniel Borkmann
On 10/1/19 11:41 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 Neira ---

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

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