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
Unknown Object (File)
Fri, Oct 25, 4:25 PM
Unknown Object (File)
Thu, Oct 24, 3:01 AM
Unknown Object (File)
Sep 29 2024, 12:48 AM
Unknown Object (File)
Sep 28 2024, 5:30 PM
Unknown Object (File)
Sep 18 2024, 1:59 PM
Unknown Object (File)
Sep 15 2024, 4:56 PM
Unknown Object (File)
Sep 11 2024, 3:58 PM
Unknown Object (File)
Sep 8 2024, 2:56 AM

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 Not Applicable
Unit
Tests Not Applicable

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.