Commit b1d18a7
bpf: Extend sys_bpf commands for bpf_syscall programs.
bpf_sycall programs can be used directly by the kernel modules
to load programs and create maps via kernel skeleton.
. Export bpf_sys_bpf syscall wrapper to be used in kernel skeleton.
. Export bpf_map_get to be used in kernel skeleton.
. Allow prog_run cmd for bpf_syscall programs with recursion check.
. Enable link_create and raw_tp_open cmds.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220209232001.27490-2-alexei.starovoitov@gmail.com1 parent 4f5e483 commit b1d18a7
1 file changed
+34
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
988 | 989 | | |
989 | 990 | | |
990 | 991 | | |
| |||
4756 | 4757 | | |
4757 | 4758 | | |
4758 | 4759 | | |
4759 | | - | |
| 4760 | + | |
4760 | 4761 | | |
| 4762 | + | |
| 4763 | + | |
4761 | 4764 | | |
4762 | 4765 | | |
4763 | 4766 | | |
4764 | 4767 | | |
4765 | 4768 | | |
4766 | 4769 | | |
| 4770 | + | |
| 4771 | + | |
4767 | 4772 | | |
4768 | | - | |
4769 | | - | |
4770 | | - | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
| 4796 | + | |
| 4797 | + | |
| 4798 | + | |
| 4799 | + | |
4771 | 4800 | | |
4772 | 4801 | | |
4773 | 4802 | | |
4774 | 4803 | | |
4775 | 4804 | | |
| 4805 | + | |
4776 | 4806 | | |
4777 | 4807 | | |
4778 | 4808 | | |
| |||
0 commit comments