bpf_prog_create_from_user(9)

bpf_prog_create_from_user9

Create an unattached filter from user buffer

Usage

int bpf_prog_create_from_user(struct bpf_prog ** pfp, struct sock_fprog * fprog, bpf_aux_classic_check_t trans, bool save_orig);

Arguments

pfp

the unattached filter that is created

fprog

the filter program

trans

post-classic verifier transformation handler

save_orig

save classic BPF program

Overview

This function effectively does the same as bpf_prog_create, only that it builds up its insns buffer from user space provided buffer. It also allows for passing a bpf_aux_classic_check_t handler.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.