# Re: \[PATCH 1/6\] ebpf: add a seccomp program type

- From: Daniel Borkmann \<daniel@iogearbox.net\>
- Date: 2015-09-09 16:09:52 
- List: netdev
- Page: https://ratatoskr.run/netdev/2015/09/4572355
- Thread: https://ratatoskr.run/netdev/2015/09/4569915/t.md

```text
On 09/09/2015 06:07 PM, Alexei Starovoitov wrote:
> On Wed, Sep 09, 2015 at 09:50:35AM -0600, Tycho Andersen wrote:
[...]
>> Thoughts?
>
> Please do not add any per-instruction hacks. None of them are
> necessary. Classic had to do extra ugly checks in seccomp only
> because verifier wasn't flexible enough.
> If you don't want to see any BPF_CALL in seccomp, just have
> empty get_func_proto() callback for BPF_PROG_TYPE_SECCOMP
> and verifier will reject all calls.
> Currently we have only two non-generic instrucitons
> LD_ABS and LD_IND that are avaialable for sockets/TC only,
> because these are legacy instructions and we had to make
> exceptions for them.

Yep, +1.
```
