Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2025 21:18:52 +0200
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        "Herbert J. Skuhra" <herbert@gojira.at>
Cc:        Gleb Smirnoff <glebius@FreeBSD.org>, freebsd-current@freebsd.org, src-committers@freebsd.org
Subject:   Re: June 2025 stabilization week
Message-ID:  <FAD0E98B-77BB-4562-9A59-595BCD0DCD65@FreeBSD.org>
In-Reply-To: <87bjqbzzsq.wl-herbert@gojira.at>
References:  <aFkJwZgyZXgZkXiX@cell.glebi.us> <6E5A0C58-E096-4EA1-BBC2-E0A66AA13176@FreeBSD.org> <aFr_h0fI9gmPRJN-@cell.glebi.us> <0F89BFEA-3948-4D21-9396-EDB5034AAE7A@FreeBSD.org> <2771ED29-7FC2-4D99-A0A0-20E16C62316E@FreeBSD.org> <87bjqbzzsq.wl-herbert@gojira.at>

index | next in thread | previous in thread | raw e-mail

> On 25. Jun 2025, at 16:00, Herbert J. Skuhra <herbert@gojira.at> wrote:
> 
> On Tue, 24 Jun 2025 22:52:48 +0200, Michael Tuexen wrote:
>> 
>>> On 24. Jun 2025, at 22:08, Michael Tuexen <tuexen@freebsd.org> wrote:
>>> 
>>>> On 24. Jun 2025, at 21:41, Gleb Smirnoff <glebius@FreeBSD.org> wrote:
>>>> 
>>>> On Tue, Jun 24, 2025 at 12:28:25PM +0200, Michael Tuexen wrote:
>>>> M> In /etc/devfs.conf I have
>>>> M> 
>>>> M> own bpf* root:network
>>>> M> perm bpf* 0660
>>>> M> 
>>>> M> and this results in
>>>> M> tuexen@epyc:~ % ls -l /dev/bpf*
>>>> M> crw-rw----  1 root network 0x27 Apr 26 20:13 /dev/bpf
>>>> M> lrwxr-xr-x  1 root wheel      3 Apr 26 20:13 /dev/bpf0 -> bpf
>>>> M> 
>>>> M> This allows members of the network group to capture traffic.
>>>> M> 
>>>> M> However, with main-n278173-81e6c0168d46 I get
>>>> M> tuexen@epyc:~ % ls -l /dev/bpf*
>>>> M> crw-------  1 root wheel 0x27 Jun 24 12:25 /dev/bpf
>>>> M> lrwxr-xr-x  1 root wheel    3 Jun 24 12:25 /dev/bpf0 -> bpf
>>>> M> 
>>>> M> It looks like the devd did not what it did in the past.
>>>> 
>>>> I failed to reproduce that on fe55780e5f10, which is very
>>>> close to 81e6c0168d46. I have what is expected:
>>>> 
>>>> crw-rw----  1 root network 0x1d 24 июня  12:37 /dev/bpf
>>>> lrwxr-xr-x  1 root wheel      3 24 июня  12:37 /dev/bpf0 -> bpf
>>>> 
>>> I just tried the updated version of May 2025 stabweek, and that is
>>> working fine. Let me test fe55780e5f10...
>>> I observe this problem on an arm64 and on an amd64 system...
>> fe55780e5f10 show the problem for me:
>> tuexen@epyc:~ % ls -l /dev/bpf*
>> crw-------  1 root wheel 0x27 Jun 24 22:48 /dev/bpf
>> lrwxr-xr-x  1 root wheel    3 Jun 24 22:48 /dev/bpf0 -> bpf
> 
> 4deb9760a9d8?
> 
> Reverting 7faddeb395b7 and 4deb9760a9d8 and running etcupdate seem to
> resolve the issue.
I bisected the issue. It is introduced by
https://cgit.FreeBSD.org/src/commit/?id=4deb9760a9d84d5861ee45162ffebe83f13503b8 <https://cgit.freebsd.org/src/commit/?id=4deb9760a9d84d5861ee45162ffebe83f13503b8>;

Gleb: What entry in /etc/devfs.conf do you have? I have

own	bpf*	root:network
perm	bpf*	0660

and the problem goes away if I remove the trailing *.

So I guess you have

own	bpf	root:network
perm	bpf	0660

Is that guess correct? But I think using * is OK, it is even
suggested in
https://cgit.freebsd.org/ports/tree/net/wireshark/pkg-message

Therefore I have created
https://reviews.freebsd.org/D51043
which fixes the issue.

Best regards
Michael




home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FAD0E98B-77BB-4562-9A59-595BCD0DCD65>