o Remove unnecessary jail() check in bpfopen() -- we limit device access
in jail using /dev namespace limits and mknod() limits, not by explicit checks in the device open code.
This commit is contained in:
parent
639a9162ad
commit
5be30b375e
|
@ -322,9 +322,6 @@ bpfopen(dev, flags, fmt, p)
|
|||
{
|
||||
struct bpf_d *d;
|
||||
|
||||
if (p->p_prison)
|
||||
return (EPERM);
|
||||
|
||||
mtx_lock(&bpf_mtx);
|
||||
d = dev->si_drv1;
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue