Re: [PATCH bpf-next v1 11/19] bpf: add task and task/file targets

2020-05-01 Thread Andrii Nakryiko
On Fri, May 1, 2020 at 10:23 AM Yonghong Song wrote: > > > > On 4/29/20 7:08 PM, Andrii Nakryiko wrote: > > On Mon, Apr 27, 2020 at 1:17 PM Yonghong Song wrote: > >> > >> Only the tasks belonging to "current" pid namespace > >> are enumerated. > >> > >> For task/file target, the bpf program will

Re: [PATCH bpf-next v1 11/19] bpf: add task and task/file targets

2020-05-01 Thread Yonghong Song
On 4/29/20 7:08 PM, Andrii Nakryiko wrote: On Mon, Apr 27, 2020 at 1:17 PM Yonghong Song wrote: Only the tasks belonging to "current" pid namespace are enumerated. For task/file target, the bpf program will have access to struct task_struct *task u32 fd struct file *file where fd/

Re: [PATCH bpf-next v1 11/19] bpf: add task and task/file targets

2020-04-29 Thread Andrii Nakryiko
On Mon, Apr 27, 2020 at 1:17 PM Yonghong Song wrote: > > Only the tasks belonging to "current" pid namespace > are enumerated. > > For task/file target, the bpf program will have access to > struct task_struct *task > u32 fd > struct file *file > where fd/file is an open file for the task. >