History

bpf: add BPF token support to BPF_BTF_LOAD command

Accept BPF token FD in BPF_BTF_LOAD command to allow BTF data loading through delegated BPF token. BTF loading is a pretty straightforward operation, so as long as BPF token is created with allow_cmds granting BPF_BTF_LOAD command, kernel proceeds to parsing BTF data and creating BTF object.

Andrii Nakryiko committed 2 years ago

Commit ee54b1a1 parent 688b7273 files · +20 −2Browse files

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

Unified · Split

include/uapi/linux/bpf.h+1−0
@@ -1616,6 +1616,7 @@ union bpf_attr { · 1615 unmodified lines
1616 * truncated), or smaller (if log buffer wasn't filled completely).1616 * truncated), or smaller (if log buffer wasn't filled completely).
1617 */1617 */
1618 __u32 btf_log_true_size;1618 __u32 btf_log_true_size;
1619 __u32 btf_token_fd;
1619 };1620 };
1620 1621
1621 struct {1622 struct {

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