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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -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 { |