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
181181 BPF_PROG_TYPE_TRACING,
182182 BPF_PROG_TYPE_STRUCT_OPS,
183183 BPF_PROG_TYPE_EXT,
184+ BPF_PROG_TYPE_LSM,
184185 };
185186
186187 enum bpf_attach_type {
@@ -211,6 +212,7 @@ enum bpf_attach_type { · 24 unmodified lines
211212 BPF_TRACE_FENTRY,
212213 BPF_TRACE_FEXIT,
213214 BPF_MODIFY_RETURN,
215+ BPF_LSM_MAC,
214216 __MAX_BPF_ATTACH_TYPE
215217 };
216218

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