[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a51da62a-03da-fae5-f6eb-9aacdd7861b2@iogearbox.net>
Date: Mon, 30 Mar 2020 23:00:14 +0200
From: Daniel Borkmann <daniel@...earbox.net>
To: KP Singh <kpsingh@...omium.org>, linux-kernel@...r.kernel.org,
bpf@...r.kernel.org
Cc: Randy Dunlap <rdunlap@...radead.org>,
Alexei Starovoitov <ast@...nel.org>
Subject: Re: [PATCH bpf-next] bpf: lsm: Make BPF_LSM depend on BPF_EVENTS
On 3/30/20 10:40 PM, KP Singh wrote:
> From: KP Singh <kpsingh@...gle.com>
>
> LSM and tracing programs share their helpers with bpf_tracing_func_proto
> which is only defined (in bpf_trace.c) when BPF_EVENTS is enabled.
>
> Instead of adding __weak symbol, make BPF_LSM depend on
> BPF_EVENTS so that both tracing and LSM programs can actually share
> helpers.
>
> Signed-off-by: KP Singh <kpsingh@...gle.com>
> Reported-by: Randy Dunlap <rdunlap@...radead.org>
> Fixes: fc611f47f218 ("bpf: Introduce BPF_PROG_TYPE_LSM")
Applied, thanks!
Powered by blists - more mailing lists