Page MenuHomeFreeBSD

automatic service jails: some setup for full functionality of the services in automatic service jails
ClosedPublic

Authored by netchild on Jun 1 2023, 9:00 AM.
Referenced Files
F106141592: D40371.id122695.diff
Thu, Dec 26, 2:15 AM
Unknown Object (File)
Thu, Dec 12, 5:29 PM
Unknown Object (File)
Fri, Dec 6, 7:51 PM
Unknown Object (File)
Nov 21 2024, 8:41 PM
Unknown Object (File)
Nov 20 2024, 11:51 AM
Unknown Object (File)
Nov 11 2024, 7:19 AM
Unknown Object (File)
Nov 11 2024, 7:19 AM
Unknown Object (File)
Nov 8 2024, 1:36 PM

Details

Summary

This depends upon:

--https://reviews.freebsd.org/D40369-- committed

https://reviews.freebsd.org/D40370

It gives more permissions to services (e.g. network access to services which require this) which are started as an automatic service jail (D40370). The sshd patch is important for the sshd-related functionality as described in the man-page of D40370.

The location of the added env vars is supposed to allow overriding them in rc.conf, and to hard-disable the use of svcj for some parts where it doesn't make sense or will not work. Only a small subset of all of the services is tested.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

netchild created this revision.
netchild edited the summary of this revision. (Show Details)
netchild set the repository for this revision to rG FreeBSD src repository.

Add config for some more services.

netchild edited the summary of this revision. (Show Details)
  • make some scripts compatible with svcj (convert parts of the precmd into another way of settings variables), precmd is not run inside the same shell/jail = make it work with svcj
  • add some support for nfs in svcj, not yet finished (precmd is not comaptible)
  • exclude some scripts from svcj due to an incompatible precmd (not run in same shell/jail)
This revision was not accepted when it landed; it landed in state Needs Review.May 22 2024, 1:42 PM
This revision was automatically updated to reflect the committed changes.