From owner-svn-src-all@freebsd.org Sat Nov 10 14:18:35 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D40AA11001EA; Sat, 10 Nov 2018 14:18:34 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0936DB1F; Sat, 10 Nov 2018 14:18:33 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 713578D4A24D; Sat, 10 Nov 2018 14:18:31 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 6DDA6D1F7F2; Sat, 10 Nov 2018 14:18:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id s77PZS_BT9_W; Sat, 10 Nov 2018 14:18:28 +0000 (UTC) Received: from [10.9.40.57] (fresh-ayiya.sbone.de [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 05704D1F7F0; Sat, 10 Nov 2018 14:18:27 +0000 (UTC) From: "Bjoern A. Zeeb" To: "H. Schmalzbauer - OmniLAN" Cc: "Eugene Grosbein" , "James Gritton" , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r340319 - head/usr.sbin/jail Date: Sat, 10 Nov 2018 14:18:38 +0000 X-Mailer: MailMate (2.0BETAr6126) 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 1E0936DB1F X-Spamd-Result: default: False [-4.46 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zabbadoz.net]; RCPT_COUNT_FIVE(0.00)[6]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: cross.sbone.de]; NEURAL_HAM_SHORT(-0.94)[-0.937,0]; IP_SCORE(-1.21)[ipnet: 2a01:4f8::/29(-3.01), asn: 24940(-3.02), country: DE(-0.02)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2018 14:18:35 -0000 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