lkml.org 
[lkml]   [2020]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH bpf-next] bpf: lsm: Make BPF_LSM depend on BPF_EVENTS
From
Date
On 3/30/20 10:40 PM, KP Singh wrote:
> From: KP Singh <kpsingh@google.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@google.com>
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Fixes: fc611f47f218 ("bpf: Introduce BPF_PROG_TYPE_LSM")

Applied, thanks!

\
 
 \ /
  Last update: 2020-03-30 23:00    [W:0.024 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site