diff options
author | KP Singh <[email protected]> | 2020-03-30 22:40:59 +0200 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-03-30 22:57:23 +0200 |
commit | 4edf16b72c57bb0faad5da143f812384df0c43f6 (patch) | |
tree | ee2e63b9471143ed78dca3db4b7bed72d2f33028 /lib/net_utils.c | |
parent | c58b1558a7474fea6c914f061fab9121f10e38bb (diff) |
bpf, lsm: Make BPF_LSM depend on BPF_EVENTS
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.
Fixes: fc611f47f218 ("bpf: Introduce BPF_PROG_TYPE_LSM")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: KP Singh <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions