[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <57ADF2F4.9080309@iogearbox.net>
Date: Fri, 12 Aug 2016 18:01:56 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: Sargun Dhillon <sargun@...gun.me>, netdev@...r.kernel.org
CC: alexei.starovoitov@...il.com, tj@...nel.org
Subject: Re: [PATCH net-next v5 2/3] bpf: Add bpf_current_task_under_cgroup
helper
On 08/12/2016 05:56 PM, Sargun Dhillon wrote:
> This adds a bpf helper that's similar to the skb_in_cgroup helper to check
> whether the probe is currently executing in the context of a specific
> subset of the cgroupsv2 hierarchy. It does this based on membership test
> for a cgroup arraymap. It is invalid to call this in an interrupt, and
> it'll return an error. The helper is primarily to be used in debugging
> activities for containers, where you may have multiple programs running in
> a given top-level "container".
>
> Signed-off-by: Sargun Dhillon <sargun@...gun.me>
> Cc: Alexei Starovoitov <ast@...nel.org>
> Cc: Daniel Borkmann <daniel@...earbox.net>
> Cc: Tejun Heo <tj@...nel.org>
> Acked-by: Tejun Heo <tj@...nel.org>
> Acked-by: Alexei Starovoitov <ast@...nel.org>
Looks good, thanks, Sargun!
Acked-by: Daniel Borkmann <daniel@...earbox.net>
Powered by blists - more mailing lists