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)
Sun, Sep 20, 6:11 PM
Unknown Object (File)
Sun, Sep 13, 2:35 AM
Unknown Object (File)
Fri, Sep 11, 12:47 AM
Unknown Object (File)
Wed, Sep 9, 8:23 PM
Unknown Object (File)
Wed, Sep 9, 6:11 AM
Unknown Object (File)
Sat, Sep 5, 2:38 PM
Unknown Object (File)
Sat, Sep 5, 1:56 PM
Unknown Object (File)
Sat, Sep 5, 12:16 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 50518
Build 47409: 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.