Page MenuHomeFreeBSD

routing: add public rt_is_exportable() version to check if route can be exported to userland when jailed.
ClosedPublic

Authored by melifaro on Mar 22 2023, 11:50 AM.
Tags
None
Referenced Files
F150212586: D39204.id119242.diff
Mon, Mar 30, 7:36 AM
F150184680: D39204.diff
Mon, Mar 30, 2:46 AM
F150170040: D39204.id119241.diff
Mon, Mar 30, 12:02 AM
Unknown Object (File)
Sat, Mar 28, 10:42 AM
Unknown Object (File)
Tue, Mar 24, 7:29 PM
Unknown Object (File)
Tue, Mar 24, 10:24 AM
Unknown Object (File)
Sat, Mar 21, 12:49 PM
Unknown Object (File)
Sat, Mar 21, 9:53 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 50517
Build 47408: arc lint + arc unit

Event Timeline

zlei added inline comments.
sys/net/route/route_rtentry.c
202
  1. If the process is in legacy jail, only allow export host routes for the addresses assigned to the jail.
  2. Otherwise, allow export.

Am I right ?

sys/net/route/route_rtentry.c
202

Yes (and this is actually should be written in the description)

This revision was not accepted when it landed; it landed in state Needs Review.Mar 26 2023, 8:38 AM
This revision was automatically updated to reflect the committed changes.