diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-02-21 05:34:34 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-02-21 05:34:34 +0000 |
commit | b8eb67e3be408d1544cd7afa8a0854e7ffefa96e (patch) | |
tree | a809dea87b44b239fc9752461342e823ebdd7874 /sys/net | |
parent | ba9f28da4f88956bd9750dd7f7ad5715b1436dbc (diff) | |
download | FreeBSD-src-b8eb67e3be408d1544cd7afa8a0854e7ffefa96e.zip FreeBSD-src-b8eb67e3be408d1544cd7afa8a0854e7ffefa96e.tar.gz |
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.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 9c70a25..6ad19d9 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -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; /* |