History

netfilter: xt_bpf: add mising opaque struct sk_filter definition

This structure is not exposed to userspace, so fix this by defining struct sk_filter; so we skip the casting in kernelspace. This is safe since userspace has no way to lurk with that internal pointer.

Pablo Neira committed 12 years ago

Commit e10038a1 parent 5160ee91 file · +2 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/netfilter/xt_bpf.h+2−0
@@ -6,6 +6,8 @@ · 5 unmodified lines
66
77 #define XT_BPF_MAX_NUM_INSTR 64
88
9+struct sk_filter;
10+
911 struct xt_bpf_info {
1012 __u16 bpf_program_num_elem;
1113 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR];