History

bpf: Introduce BPF_PROG_TYPE_LSM

Introduce types and configs for bpf programs that can be attached to LSM hooks. The programs can be enabled by the config option CONFIG_BPF_LSM.

KP Singh committed 6 years ago

Commit fc611f41 parent e5fb60e10 files · +49 −6Browse files

Showing the changes to include/uapi/linux (1 of 10 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−0
@@ -181,6 +181,7 @@ enum bpf_prog_type { · 180 unmodified lines
181 BPF_PROG_TYPE_TRACING,181 BPF_PROG_TYPE_TRACING,
182 BPF_PROG_TYPE_STRUCT_OPS,182 BPF_PROG_TYPE_STRUCT_OPS,
183 BPF_PROG_TYPE_EXT,183 BPF_PROG_TYPE_EXT,
184 BPF_PROG_TYPE_LSM,
184};185};
185 186
186enum bpf_attach_type {187enum bpf_attach_type {
@@ -211,6 +212,7 @@ enum bpf_attach_type { · 24 unmodified lines
211 BPF_TRACE_FENTRY,212 BPF_TRACE_FENTRY,
212 BPF_TRACE_FEXIT,213 BPF_TRACE_FEXIT,
213 BPF_MODIFY_RETURN,214 BPF_MODIFY_RETURN,
215 BPF_LSM_MAC,
214 __MAX_BPF_ATTACH_TYPE216 __MAX_BPF_ATTACH_TYPE
215};217};
216 218

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t