Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2018 14:18:38 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        "H. Schmalzbauer - OmniLAN" <h.schmalzbauer@omnilan.de>
Cc:        "Eugene Grosbein" <eugen@freebsd.org>, "James Gritton" <jamie@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r340319 - head/usr.sbin/jail
Message-ID:  <8E0E6030-C77F-4F80-8DAF-7545256A7616@lists.zabbadoz.net>
In-Reply-To: <7c4c38c5-1eb0-6e3b-adce-f5caf482281e@omnilan.de>
References:  <201811101203.wAAC3vov082259@repo.freebsd.org> <871CB649-7A64-490B-A81E-F68A575A8BA4@lists.zabbadoz.net> <882c5796-6e36-8acc-95ba-af90b9ee3bf8@freebsd.org> <7c4c38c5-1eb0-6e3b-adce-f5caf482281e@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Nov 2018, at 13:10, H. Schmalzbauer - OmniLAN wrote:

> I was quiet unhappy with the single jail.conf(5) in /etc, so I 
> extended jail rc(8) to support /etc/jail.conf.d/
>
> Probably some others would welcome jail.conf.d/ too.  Unfortunately I 
> don't have enough time to stay focused with one feature, so all my 
> extensions are somewhat hackish.
> In this case, it's part of a jail setup script (I'm aware that there 
> are many ports out ther which claim to ease jail management, but all 
> to much more and nothing I could get a start point with satisfaction, 
> so I wrote my own, wich _only_ utilizes base tools).
>
> Essentialy, it's about
> +++ /etc/rc.d/jail    2017-09-28 13:55:35.109528000 +0000
> @@ -127,6 +128,9 @@
>          if [ -r "$_jconf" ]; then
>              _conf="$_jconf"
>              return 0
> +        elif [ -r /etc/jail.conf.d/${_j} ]; then
> +            _conf="/etc/jail.conf.d/${_j}"
> +            return 0
>          elif [ -r "$jail_conf" ]; then
>              _conf="$jail_conf"
>              return 0'
>   fi
>
> Do you think that jail.conf.d/ should be considered as future 
> extension?

I am working around this currently with (random example):

jail_NAME_conf=“/usr/local/etc/jail.NAME.conf"

for each jail. Works fine.  Not having to do that anymore and 
“assuming” NAME can be a distinct config file as well in a directory 
(I can control, e.g. is not /etc/) would be helpful.

/bz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8E0E6030-C77F-4F80-8DAF-7545256A7616>