[PATCH master] net: tap: return -ENODEV when TAP permission is denied

Sascha Hauer s.hauer at pengutronix.de
Thu Dec 12 00:18:51 PST 2024


On Thu, 12 Dec 2024 08:22:28 +0100, Ahmad Fatoum wrote:
> tap_alloc will return -EPERM, when not running with CAP_NET_ADMIN.
> For most users, this is the default case and thus barebox printing:
> 
>   could not get tap device: Operation not permitted
>   ERROR: tap tap0: probe failed: Operation not permitted
> 
> is just confusing. Improve this by returning -ENODEV in that situation
> instead, which driver core already understands to be an acceptable
> return code that warrants no error message.
> 
> [...]

Applied, thanks!

[1/1] net: tap: return -ENODEV when TAP permission is denied
      https://git.pengutronix.de/cgit/barebox/commit/?id=7ddffa986081 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list