HomeFreeBSD

ifconfig(8): Teach ifconfig to attach and run itself in a jail

Description

ifconfig(8): Teach ifconfig to attach and run itself in a jail

Add -j <jail> flag to ifconfig to allow ifconfig to attach and run inside a
jail. This allow parent to configure network interfaces of its children
even if ifconfig is not available in child's tree (e.g. Linux Jails)

Reviewed by: emaste, khng, melifaro
Event: Kitchener-Waterloo Hackathon 202305
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40213

(cherry picked from commit 7e49aa86a2824e76e9d9becf61db12066bc0d79d)

Details

Provenance
nyan_myuji.xyzAuthored on May 23 2023, 8:39 PM
dfrCommitted on Aug 16 2023, 12:25 PM
Reviewer
emaste
Differential Revision
D40213: Teach ifconfig to attach and run itself in a jail.
Parents
rG0fbf21482f5a: tmpfs: add the "pgread" mount option to the allowed options list for mount
Branches
Unknown
Tags
Unknown