Page MenuHomeFreeBSD

jail: install a default /etc/jail.conf which honors /etc/jail.conf.d/
AcceptedPublic

Authored by lwhsu on Jan 2 2026, 8:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 17, 2:23 AM
Unknown Object (File)
Tue, Jun 16, 9:16 PM
Unknown Object (File)
Thu, Jun 4, 9:33 PM
Unknown Object (File)
May 15 2026, 5:07 AM
Unknown Object (File)
May 14 2026, 9:02 PM
Unknown Object (File)
May 12 2026, 2:47 PM
Unknown Object (File)
Apr 27 2026, 5:20 PM
Unknown Object (File)
Apr 20 2026, 7:08 AM

Details

Reviewers
antranigv_freebsd.am
Group Reviewers
Jails
Summary
jail: install a default /etc/jail.conf which honors /etc/jail.conf.d/

If just putting all jail settings in /etc/jail.conf.d, /etc/rc.d/jail gives:

Starting jails:jail: /etc/jail.conf: No such file or directory

Sponsored by:	The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 69567
Build 66450: arc lint + arc unit

Event Timeline

lwhsu requested review of this revision.Jan 2 2026, 8:37 AM

+1

as a matter of fact, this is a good motivation to update the jail.conf examples as well.

This revision is now accepted and ready to land.Jan 2 2026, 8:46 AM

as a matter of fact, this is a good motivation to update the jail.conf examples as well.

Any suggestion? It seems this already in the EXAMPLES section?

The EXAMPLES section in the manual pages are actually pretty good, but I was thinking about the examples in the examples directory: /usr/share/examples/jails || https://cgit.freebsd.org/src/tree/share/examples/jails

Since 14.0, multiple features have been added which are under demonstrated. We should also update the README and remove the VIMAGE file (has been merged into GENERIC since 11.0).

Thank you for this little change, it's a good motivation to move other low hanging fruits as well.