Page MenuHomeFreeBSD

ifconfig: abort if loading a module fails other than for ENOENT
ClosedPublic

Authored by asomers on Dec 25 2022, 6:09 PM.
Tags
None
Referenced Files
F110077258: D37873.diff
Thu, Feb 13, 8:16 AM
Unknown Object (File)
Wed, Feb 12, 12:11 AM
Unknown Object (File)
Wed, Feb 5, 2:58 AM
Unknown Object (File)
Sat, Jan 25, 10:30 AM
Unknown Object (File)
Nov 17 2024, 2:54 AM
Unknown Object (File)
Nov 17 2024, 2:28 AM
Unknown Object (File)
Nov 17 2024, 12:39 AM
Unknown Object (File)
Nov 15 2024, 12:01 PM
Subscribers

Details

Summary

If "ifconfig create" tries to load a kernel module, and the module
exists but can't be loaded, fail the command with a useful error
message. This is helpful, for example, when trying to create a cloned
interface in a vnet jail. But ignore ENOENT, because sometimes ifconfig
can't correctly guess the name of the required kernel module.

MFC after: 2 weeks

Test Plan

Manually tested

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable