Page MenuHomeFreeBSD

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

Authored by lwhsu on Fri, Jan 2, 8:37 AM.
Tags
None
Referenced Files
F141882537: D54450.diff
Sun, Jan 11, 11:11 PM
Unknown Object (File)
Sat, Jan 10, 4:30 AM
Unknown Object (File)
Wed, Jan 7, 11:31 PM
Unknown Object (File)
Tue, Jan 6, 4:19 PM
Unknown Object (File)
Tue, Jan 6, 4:02 AM
Unknown Object (File)
Mon, Jan 5, 2:47 PM
Unknown Object (File)
Fri, Jan 2, 6:58 PM
Unknown Object (File)
Fri, Jan 2, 1:07 PM

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.Fri, Jan 2, 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.Fri, Jan 2, 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.