linux/arch/sparc/include/uapi/asm
Alexei Starovoitov 89aa075832 net: sock: allow eBPF programs to be attached to sockets
introduce new setsockopt() command:

setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, sizeof(prog_fd))

where prog_fd was received from syscall bpf(BPF_PROG_LOAD, attr, ...)
and attr->prog_type == BPF_PROG_TYPE_SOCKET_FILTER

setsockopt() calls bpf_prog_get() which increments refcnt of the program,
so it doesn't get unloaded while socket is using the program.

The same eBPF program can be attached to multiple sockets.

User task exit automatically closes socket which calls sk_filter_uncharge()
which decrements refcnt of eBPF program

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-12-05 21:47:32 -08:00
..
apc.h
asi.h
auxvec.h
bitsperlong.h
byteorder.h
display7seg.h
envctrl.h
errno.h errno.h: remove "NFS" from descriptions in comments 2013-11-13 12:09:12 +09:00
fbio.h
fcntl.h Safer ABI for O_TMPFILE 2013-07-13 13:26:37 +04:00
ioctl.h
ioctls.h sparc/uapi: Add definition of TIOC[SG]RS485 2014-09-09 22:36:40 -07:00
ipcbuf.h
jsflash.h
Kbuild sparc: use asm-generic version of types.h 2013-03-31 19:29:13 -04:00
kvm_para.h
mman.h
msgbuf.h
openpromio.h
param.h
perfctr.h
poll.h
posix_types.h
psr.h
psrcompat.h
pstate.h
ptrace.h
resource.h
sembuf.h
setup.h
shmbuf.h
sigcontext.h UAPI: Make arch/sparc/include/uapi/asm/sigcontext.h non-empty 2012-10-17 12:32:35 +01:00
siginfo.h
signal.h sparc: switch to use of generic old sigaction 2013-02-03 22:43:35 -05:00
socket.h net: sock: allow eBPF programs to be attached to sockets 2014-12-05 21:47:32 -08:00
sockios.h
stat.h
statfs.h
swab.h sparc64: Fix constraints on swab helpers. 2014-11-16 13:19:32 -08:00
termbits.h
termios.h
traps.h
uctx.h
unistd.h sparc: Hook up bpf system call. 2014-10-28 11:30:43 -07:00
utrap.h
watchdog.h