Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-26 Thread Yonghong Song
On 9/26/19 9:16 AM, John Fastabend wrote: > Eric W. Biederman wrote: >> Carlos Neira writes: >> >>> Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's >>> scripts but this helper returns the pid as seen by the root namespace which >>> is >>> fine when a bcc script is not

Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-26 Thread John Fastabend
Eric W. Biederman wrote: > Carlos Neira writes: > > > Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's > > scripts but this helper returns the pid as seen by the root namespace which > > is > > fine when a bcc script is not executed inside a container. > > When the proc

Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-26 Thread Yonghong Song
On 9/25/19 5:59 PM, Eric W. Biederman wrote: > Carlos Neira writes: > >> Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's >> scripts but this helper returns the pid as seen by the root namespace which >> is >> fine when a bcc script is not executed inside a container.

Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-25 Thread Eric W. Biederman
Carlos Neira writes: > Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's > scripts but this helper returns the pid as seen by the root namespace which is > fine when a bcc script is not executed inside a container. > When the process of interest is inside a container, pid

Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-24 Thread Carlos Antonio Neira Bustos
On Tue, Sep 24, 2019 at 08:01:17PM +0200, Daniel Borkmann wrote: > On Tue, Sep 24, 2019 at 12:20:01PM -0300, Carlos Neira wrote: > > Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's > > scripts but this helper returns the pid as seen by the root namespace which > > is > >

Re: [PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-24 Thread Daniel Borkmann
On Tue, Sep 24, 2019 at 12:20:01PM -0300, Carlos Neira wrote: > Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's > scripts but this helper returns the pid as seen by the root namespace which is > fine when a bcc script is not executed inside a container. > When the process

[PATCH V11 0/4] BPF: New helper to obtain namespace data from current task

2019-09-24 Thread Carlos Neira
Currently bpf_get_current_pid_tgid(), is used to do pid filtering in bcc's scripts but this helper returns the pid as seen by the root namespace which is fine when a bcc script is not executed inside a container. When the process of interest is inside a container, pid filtering will not work if bpf