Netdev List
 help / color / mirror / Atom feed
* [PATCH 0/1] selftests: net: fix file owner for broadcast_ether_dst test
@ 2026-06-10  6:22 Ross Porter
  2026-06-10  6:22 ` [PATCH 1/1] " Ross Porter
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Porter @ 2026-06-10  6:22 UTC (permalink / raw)
  To: linux-kselftest, netdev
  Cc: ross.porter, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Shuah Khan, Brett A C Sheffield,
	Oscar Maes, linux-kernel

The broadcast_ether_dst test can spuriously fail due to file
permissions, depending on which flags tcpdump is compiled with: If
tcpdump is compiled with the `--with-user` flag then tcpdump will
step down to the provided user after opening the device. In this
case the test fails due to permission issues, as the output file
is owned by a different user.
Debian ships tcpdump with this flag enabled, so this bug
appears as part of our kernel testing.

To fix this, we can ensure tcpdump remains as root (regardless of
whether it was compiled with `--with-user`) by passing the `-Z root`
argument when invoking it.

This is my first kernel contribution, so please let me know if I've 
missed anything.

Ross Porter (1):
  selftests: net: fix file owner for broadcast_ether_dst test

 tools/testing/selftests/net/broadcast_ether_dst.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-13 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10  6:22 [PATCH 0/1] selftests: net: fix file owner for broadcast_ether_dst test Ross Porter
2026-06-10  6:22 ` [PATCH 1/1] " Ross Porter
2026-06-13 21:32   ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox