From owner-freebsd-jail@freebsd.org Tue Jun 26 19:14:28 2018 Return-Path: Delivered-To: freebsd-jail@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 17FFA1012974; Tue, 26 Jun 2018 19:14:28 +0000 (UTC) (envelope-from SRS0=Ta0Z=JM=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A3CCB7F964; Tue, 26 Jun 2018 19:14:27 +0000 (UTC) (envelope-from SRS0=Ta0Z=JM=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 2166928416; Tue, 26 Jun 2018 21:14:26 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id D530728412; Tue, 26 Jun 2018 21:14:24 +0200 (CEST) Subject: Re: jail related inconsistencies in FreeBSD tools parameters To: James Gritton , Eitan Adler Cc: freebsd-jail@freebsd.org, freebsd-stable Stable , bsd-lists@bsdforge.com References: <6dd9952452c73826a2f9c01612586bea@udns.ultimatedns.net> <18000a3b93085c91aeffbca937862786@freebsd.org> <51718e96f63175e997cb8268381d1070@freebsd.org> <8b11953ce292aff0bc60298e2e7613d6@freebsd.org> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <383af6fa-ae18-9126-de99-d642fe8407ae@quip.cz> Date: Tue, 26 Jun 2018 21:14:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: <8b11953ce292aff0bc60298e2e7613d6@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2018 19:14:28 -0000 James Gritton wrote on 2018/06/26 20:42: > On 2018-06-23 12:58, Eitan Adler wrote: [...] >> I was thinking of a more generic one that does id or name. Now that I >> think about it a bit more, C makes this kind of thing impossible to do >> usefully. >> >> That said, I'll still review and commit any patches to existing tools >> to make them behave consistently. > > Yes, jail_getid(3) works with either a numeric ID or a name. > > I've added a patch to > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229266 for the four > programs I've found that need help.  I've tested the easy ones (cpuset > and sockstat). Thank you very much. I really appreciate your neverending work on jails! I hope it will be committed soon. Kind regards Miroslav Lachman