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
Unknown Object (File)
Mon, Jul 13, 6:31 AM
Unknown Object (File)
Jun 15 2026, 10:21 PM
Unknown Object (File)
Jun 15 2026, 8:52 AM
Unknown Object (File)
Jun 9 2026, 3:28 AM
Unknown Object (File)
Jun 8 2026, 5:55 PM
Unknown Object (File)
May 28 2026, 12:27 PM
Unknown Object (File)
May 26 2026, 6:43 AM
Unknown Object (File)
May 25 2026, 10:09 PM
Subscribers

Diff Detail

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

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.