From owner-freebsd-jail@freebsd.org Sun Nov 27 20:07:09 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8B25C59016 for ; Sun, 27 Nov 2016 20:07:09 +0000 (UTC) (envelope-from me@cschwarz.com) Received: from orion.uberspace.de (orion.uberspace.de [95.143.172.79]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E70ED30 for ; Sun, 27 Nov 2016 20:07:08 +0000 (UTC) (envelope-from me@cschwarz.com) Received: (qmail 24807 invoked from network); 27 Nov 2016 20:00:24 -0000 Received: from localhost (HELO csarch) (127.0.0.1) by orion.uberspace.de with SMTP; 27 Nov 2016 20:00:24 -0000 Date: Sun, 27 Nov 2016 21:00:22 +0100 From: Christian Schwarz To: freebsd-jail@freebsd.org Subject: jls(8) inconsistent output Message-ID: <20161127200022.GA14008@csarch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.2 (2016-07-01) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2016 20:07:09 -0000 Hi all, jls(8) is generating inconsistent output regarding IPv4 & IPv6 addresses. Below are some examples documenting the behavior. - For readability, I use `--libxo json` and pipe the output through jq. However, the information is the same as without `--libxo` - These are all jails spawned by ezjail(8), hence spawned using the old rc.conf syntax. Can anyone reproduce these inconsistencies on their system? Possibly with the native jail.conf / other jail managers. Furthermore: I would be willing to try fixing the behavior. However, do you think changing/correcting the output at this point will break existing software? Cheers, Christian --- jls --libxo json IPv6 addresses are not printed at all ... { ... "ipv4": "10.123.234.6", ... } ... jls --libxo json -n all Both address types are printed, but not particularly nicely (should use JSON arrays) Additionally, the ip(4|6) variables seem inconsistent. ... { "ip4": "disable", "ip6": "disable", ... "ip4.addr": "10.123.234.6", "ip4.saddrsel": true, "ip6.addr": "2001:ffff:ffff::b,2001:ffff:ffff::d", "ip6.saddrsel": true } ... jls --libxo json -v Attention: no -n specified Prints IPv6-Addresses as IPv4 addresses. ... { ... "ipv4_addrs": [ "10.123.234.6", "2001:ffff:ffff::b", "2001:ffff:ffff::d" ] } ... From owner-freebsd-jail@freebsd.org Sun Nov 27 21:05:28 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D968CC58604 for ; Sun, 27 Nov 2016 21:05:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C8F3313B0 for ; Sun, 27 Nov 2016 21:05:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uARL5QKB026462 for ; Sun, 27 Nov 2016 21:05:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Sun, 27 Nov 2016 21:05:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2016 21:05:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |freebsd-jail@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Mon Nov 28 13:24:49 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F080C594A9 for ; Mon, 28 Nov 2016 13:24:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 1EA3712B8 for ; Mon, 28 Nov 2016 13:24:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uASDOlCH088595 for ; Mon, 28 Nov 2016 13:24:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Mon, 28 Nov 2016 13:24:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 13:24:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamie@FreeBSD.org, | |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov --- (In reply to aler from comment #0) I suspect that this is just a thinko, the case path =3D=3D NULL is handled = later.=20 OTOH, it is not clear to me that path =3D=3D NULL should result in the '0' = addend to len in the check. If you do consider the right action to be cleanup, then the failing len che= ck already provides an example what to do. Anyway, I am attaching patch with simple additional check for path =3D=3D NULL. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Mon Nov 28 13:25:54 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38A82C594E3 for ; Mon, 28 Nov 2016 13:25:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 284D012F8 for ; Mon, 28 Nov 2016 13:25:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uASDPrl8090023 for ; Mon, 28 Nov 2016 13:25:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Mon, 28 Nov 2016 13:25:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kib@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 13:25:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 --- Comment #2 from Konstantin Belousov --- Created attachment 177482 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177482&action= =3Dedit Check for path =3D=3D NULL. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Mon Nov 28 19:19:33 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 971C2C5A7B4 for ; Mon, 28 Nov 2016 19:19:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 83169154E for ; Mon, 28 Nov 2016 19:19:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uASJJX8v056720 for ; Mon, 28 Nov 2016 19:19:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Mon, 28 Nov 2016 19:19:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 19:19:33 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Mon Nov 28 22:47:33 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 386D5C5A95B for ; Mon, 28 Nov 2016 22:47:33 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gritton.org", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DE48415C9 for ; Mon, 28 Nov 2016 22:47:32 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [199.192.165.131] (may be forged)) by gritton.org (8.15.2/8.15.2) with ESMTPS id uASMcukb055036 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 28 Nov 2016 15:38:56 -0700 (MST) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id uASMctwP055035; Mon, 28 Nov 2016 15:38:55 -0700 (MST) (envelope-from jamie@freebsd.org) X-Authentication-Warning: gritton.org: www set sender to jamie@freebsd.org using -f To: freebsd-jail@freebsd.org Subject: Re: jls(8) inconsistent output X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 28 Nov 2016 15:38:55 -0700 From: James Gritton In-Reply-To: <20161127200022.GA14008@csarch> References: <20161127200022.GA14008@csarch> Message-ID: <4e514e3bff16be825c7b52de3b441ed3@freebsd.org> X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.2.2 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2016 22:47:33 -0000 On 2016-11-27 13:00, Christian Schwarz wrote: > Hi all, > > jls(8) is generating inconsistent output regarding IPv4 & IPv6 > addresses. > > Below are some examples documenting the behavior. > > - For readability, I use `--libxo json` and pipe the output through > jq. > However, the information is the same as without `--libxo` > - These are all jails spawned by ezjail(8), hence spawned using the > old rc.conf syntax. > > Can anyone reproduce these inconsistencies on their system? > Possibly with the native jail.conf / other jail managers. > > Furthermore: I would be willing to try fixing the behavior. > However, do you think changing/correcting the output at this point > will > break existing software? Most of the output doesn't need fixing, just understanding why it is the way it is. The no-option jls is the original format used when jails had much less information in them, and has been kept in that format for just the reason you mentioned (not breaking existing software). Later on, jails got a little more complex, and the "-v" was added to show the (then) complete jail information. I consider both of these options (well, the one option and the one lack of options) to be back-compatible behavior at this point. For the modern jails with the more dynamic parameters you should either specify the parameters you want on the command line, or use "all". The "-n" doesn't matter if you're using libxo which needs to print names anyway. This explains the difference in your examples, except the weirdness of the -v output having both IPv4 and IPv6 addresses listed as "ipv4_addrs". I guess that follows the non-libxo -v convention of printing both kinds of addresses together, though the label "ipv4_addrs" is incorrect and probably should be "ip_addrs" or the like. That may be worth fixing, or may have the existing software problem at this point; I don't know what software uses the libxo output, but I imagine something does. I can only give a similar "maybe" for your comment of the multiple addresses being better presented as JSON arrays. That does seem cleaner, as long as it doesn't break much. On the point ip ip4 and ip6 being inconsistent: yes they are. I'm going to have to look in to why they're showing as "disabled" when then should be "new". This is a problem independent of whether the output is from libxo. - Jamie > jls --libxo json > IPv6 addresses are not printed at all > ... > { > ... > "ipv4": "10.123.234.6", > ... > } > ... > > jls --libxo json -n all > Both address types are printed, but not particularly nicely (should > use JSON arrays) > Additionally, the ip(4|6) variables seem inconsistent. > ... > { > "ip4": "disable", > "ip6": "disable", > ... > "ip4.addr": "10.123.234.6", > "ip4.saddrsel": true, > "ip6.addr": "2001:ffff:ffff::b,2001:ffff:ffff::d", > "ip6.saddrsel": true > } > ... > > jls --libxo json -v > Attention: no -n specified > Prints IPv6-Addresses as IPv4 addresses. > ... > { > ... > "ipv4_addrs": [ > "10.123.234.6", > "2001:ffff:ffff::b", > "2001:ffff:ffff::d" > ] > } > ... From owner-freebsd-jail@freebsd.org Fri Dec 2 03:34:30 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39436C609D8 for ; Fri, 2 Dec 2016 03:34:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 28D321468 for ; Fri, 2 Dec 2016 03:34:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB23YT2W037254 for ; Fri, 2 Dec 2016 03:34:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Fri, 02 Dec 2016 03:34:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: aler@playground.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 03:34:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 --- Comment #3 from aler@playground.ru --- Things apprear to be even worse. This code will overwrite root and leak old reference if path=3D=3DNULL and root!=3DNULL. 1218 if (path =3D=3D NULL) { 1219 path =3D "/"; 1220 root =3D mypr->pr_root; 1221 vref(root); 1222 } And this exactly happens in case of disablefullpath=3D1 and path=3D"/". path=3D=3DNULL means "nothing done for path" Adding patch to do proper fix for all this. Also i can note that pr->pr_path will be anyway unreliable in case of disablefullpath=3D1 and relative path given as argument (it doesn't event t= ry to be). But i don't think it is important for rarely-used (if even used, don't know) debugging feature. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Fri Dec 2 03:37:42 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34E1BC60A91 for ; Fri, 2 Dec 2016 03:37:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 1E9C114E0 for ; Fri, 2 Dec 2016 03:37:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB23bfUk024714 for ; Fri, 2 Dec 2016 03:37:41 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 214881] jail with path=/ and sysctl.disablefullpath=1 leads to NULL dereference Date: Fri, 02 Dec 2016 03:37:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: aler@playground.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-jail@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 03:37:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214881 --- Comment #4 from aler@playground.ru --- Created attachment 177588 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177588&action= =3Dedit patch to fix bugs --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Fri Dec 2 16:25:24 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 167EFC628E4 for ; Fri, 2 Dec 2016 16:25:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 061BF11F4 for ; Fri, 2 Dec 2016 16:25:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB2GPNFG051944 for ; Fri, 2 Dec 2016 16:25:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 215008] [patch] jls(8) separate lists for IPv4 and IPv6 in verbose libxo output Date: Fri, 02 Dec 2016 16:25:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@cschwarz.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2016 16:25:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215008 Bug ID: 215008 Summary: [patch] jls(8) separate lists for IPv4 and IPv6 in verbose libxo output Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: me@cschwarz.com CC: freebsd-jail@FreeBSD.org Created attachment 177607 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177607&action= =3Dedit This patch starts separate libxo lists for IPv4 and IPv6 addresses. jls(8) prints IPv6 addresses in the 'ipv4_addr' field when running 'jls -v --libxo json' This patch starts separate libxo lists for IPv4 and IPv6 addresses. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Dec 3 21:13:08 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 93DA4C6587C for ; Sat, 3 Dec 2016 21:13:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 83337833 for ; Sat, 3 Dec 2016 21:13:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB3LD8o7055498 for ; Sat, 3 Dec 2016 21:13:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 215008] [patch] jls(8) separate lists for IPv4 and IPv6 in verbose libxo output Date: Sat, 03 Dec 2016 21:13:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@cschwarz.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.filename attachments.description Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 21:13:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215008 Christian Schwarz changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #177607|jls_ip_addr_leaf_lists.patc |01_jls_ip_addr_leaf_lists.p filename|h |atch Attachment #177607|This patch starts separate |[Patch 1/2] Separate libxo description|libxo lists for IPv4 and |lists for IPv4 and IPv6 |IPv6 addresses. |addresses in verbose mode. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Dec 3 21:14:44 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8538C65969 for ; Sat, 3 Dec 2016 21:14:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 C79149D3 for ; Sat, 3 Dec 2016 21:14:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uB3LEi2J028303 for ; Sat, 3 Dec 2016 21:14:44 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 215008] [patch] jls(8) separate lists for IPv4 and IPv6 in verbose libxo output Date: Sat, 03 Dec 2016 21:14:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: me@cschwarz.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 21:14:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215008 --- Comment #1 from Christian Schwarz --- Created attachment 177639 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177639&action= =3Dedit [Patch 2/2] Emit IP addresses as lists in -n and encoding-format mode. --=20 You are receiving this mail because: You are on the CC list for the bug.=