40c40
< * $FreeBSD: head/sys/net/bpf.c 65922 2000-09-16 14:17:15Z brian $
---
> * $FreeBSD: head/sys/net/bpf.c 66067 2000-09-19 10:28:44Z phk $
366c366,367
< make_dev(&bpf_cdevsw, minor(dev), 0, 0, 0600, "bpf%d", lminor(dev));
---
> make_dev(&bpf_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, 0600,
> "bpf%d", dev2unit(dev));
1380,1381c1381,1383
< /* XXX: minor encoding if u > 255 */
< *dev = make_dev(&bpf_cdevsw, u, 0, 0, 0600, "bpf%d", u);
---
> *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600,
> "bpf%d", u);
> (*dev)->si_flags |= SI_CHEAPCLONE;
< * $FreeBSD: head/sys/net/bpf.c 65922 2000-09-16 14:17:15Z brian $
---
> * $FreeBSD: head/sys/net/bpf.c 66067 2000-09-19 10:28:44Z phk $
366c366,367
< make_dev(&bpf_cdevsw, minor(dev), 0, 0, 0600, "bpf%d", lminor(dev));
---
> make_dev(&bpf_cdevsw, minor(dev), UID_ROOT, GID_WHEEL, 0600,
> "bpf%d", dev2unit(dev));
1380,1381c1381,1383
< /* XXX: minor encoding if u > 255 */
< *dev = make_dev(&bpf_cdevsw, u, 0, 0, 0600, "bpf%d", u);
---
> *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600,
> "bpf%d", u);
> (*dev)->si_flags |= SI_CHEAPCLONE;