Re: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task

2018-08-10 Thread Carlos Neira
Jesper, I'm sorry, thanks a lot for the pointers to the current process. I just submitted v2 of for this patch. Thanks again for checking this out. Bests On Fri, Aug 10, 2018 at 12:40:29PM +0200, Jesper Dangaard Brouer wrote: > On Thu, 9 Aug 2018 12:07:00 -0400 > Carlos Neira wrote: > > >

Re: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task

2018-08-10 Thread Jesper Dangaard Brouer
On Thu, 9 Aug 2018 12:07:00 -0400 Carlos Neira wrote: > Jesper, > Here is the updated patch. > > From 92633f6819423093932e8d04aa3dc99a5913f6fd Mon Sep 17 00:00:00 2001 > From: Carlos Neira > Date: Thu, 9 Aug 2018 09:55:32 -0400 > Subject: [PATCH bpf-next] BPF: helpers: New helper to obtain

Re: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task

2018-08-09 Thread Carlos Neira
Jesper, Here is the updated patch. >From 92633f6819423093932e8d04aa3dc99a5913f6fd Mon Sep 17 00:00:00 2001 From: Carlos Neira Date: Thu, 9 Aug 2018 09:55:32 -0400 Subject: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task This helper obtains the active

Re: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task

2018-08-09 Thread Carlos Neira
Yes, you are right. I'll resubmit the patch with those corrections. Thanks a lot for catching this. Thu, Aug 09, 2018 at 03:46:53PM +0200, Jesper Dangaard Brouer wrote: > On Thu, 9 Aug 2018 09:18:00 -0400 > Carlos Neira wrote: > > > From: cneira > > > > This helper obtains the active

Re: [PATCH bpf-next] BPF: helpers: New helper to obtain namespace data from current task

2018-08-09 Thread Jesper Dangaard Brouer
On Thu, 9 Aug 2018 09:18:00 -0400 Carlos Neira wrote: > From: cneira > > This helper obtains the active namespace from current and returns pid, tgid, > device and namespace id as seen from that namespace, allowing to instrument > a process inside a container. > Device is read from