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)
Thu, Nov 21, 8:41 PM
Unknown Object (File)
Wed, Nov 20, 11:51 AM
Unknown Object (File)
Mon, Nov 11, 7:19 AM
Unknown Object (File)
Mon, Nov 11, 7:19 AM
Unknown Object (File)
Fri, Nov 8, 1:36 PM
Unknown Object (File)
Thu, Nov 7, 1:24 PM
Unknown Object (File)
Wed, Nov 6, 4:41 AM
Unknown Object (File)
Wed, Nov 6, 3:45 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 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.