Bug 255597 - Feature request: allow ifconfig & route to run in jail context from host system
Summary: Feature request: allow ifconfig & route to run in jail context from host system
Status: In Progress
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexander V. Chernikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 15:39 UTC by Gijs Peskens
Modified: 2024-01-10 04:04 UTC (History)
2 users (show)

See Also:
linimon: mfc-stable13?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gijs Peskens 2021-05-04 15:39:01 UTC
ifconfig and route could be given a -j flag to specify a JID/name, and do a jail_attach syscall to that jail before doing any work. 

This would allow administrators to administrate IP addresses & routing for vnet jails that might not have these binaries available (i.e.: Linux jails)
Comment 1 Alexander V. Chernikov freebsd_committer freebsd_triage 2023-06-05 10:47:54 UTC
ifconfig(8) support was added in https://cgit.freebsd.org/src/commit/sbin/ifconfig?id=7e49aa86a2824e76e9d9becf61db12066bc0d79d .
route(8) support patch: https://reviews.freebsd.org/D40377
Comment 2 Alexander V. Chernikov freebsd_committer freebsd_triage 2023-06-13 06:44:57 UTC
route(8) support landed in https://cgit.freebsd.org/src/commit/?id=ab4d1b73cbf8980dbe05cde7d822010042db8344 .

Will merge to stable/13 in 2 weeks
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2024-01-10 04:04:04 UTC
^Triage: assign to committer.