# Re: \[PATCH net-next v7 4/5\] selinux: bpf: Add selinux check for eBPF syscall operations

- From: James Morris \<hidden\>
- Date: 2017-10-20 00:58:08 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/10/11070563
- Thread: https://ratatoskr.run/netdev/2017/10/11070346/t.md

```text
On Wed, 18 Oct 2017, Chenbo Feng wrote:

> From: Chenbo Feng <redacted>
> 
> Implement the actual checks introduced to eBPF related syscalls. This
> implementation use the security field inside bpf object to store a sid that
> identify the bpf object. And when processes try to access the object,
> selinux will check if processes have the right privileges. The creation
> of eBPF object are also checked at the general bpf check hook and new
> cmd introduced to eBPF domain can also be checked there.
> 
> Signed-off-by: Chenbo Feng <redacted>
> Acked-by: Alexei Starovoitov <ast@kernel.org>


Reviewed-by: James Morris <redacted>

-- 
James Morris
[ref]
```
