From owner-freebsd-jail@freebsd.org Mon Apr 18 00:39:25 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 DF52AAEEBD6 for ; Mon, 18 Apr 2016 00:39:25 +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 CFEF61AD0 for ; Mon, 18 Apr 2016 00:39:25 +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 u3I0dPlC049678 for ; Mon, 18 Apr 2016 00:39:25 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208806] [jail] starting a jail more than once results in the ID file being blown away Date: Mon, 18 Apr 2016 00:39:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2016 00:39:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208806 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 Thu Apr 21 17:18:17 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 B35CCB1752F for ; Thu, 21 Apr 2016 17:18:17 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [162.220.209.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 96E281FD3 for ; Thu, 21 Apr 2016 17:18:14 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [162.220.209.3]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u3LHI7KG049849 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 21 Apr 2016 11:18:07 -0600 (MDT) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u3LHI7wh049848; Thu, 21 Apr 2016 11:18:07 -0600 (MDT) (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: SYSV IPC on jails with separate key namespace 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: Thu, 21 Apr 2016 11:18:07 -0600 From: James Gritton Message-ID: <1c8ef6ff0a3a718d47d94abbcd861fe1@gritton.org> X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2016 17:18:17 -0000 I've updated patch 48471 (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=48471) which had a patch to make jails work the way they should regarding SYSV IPC objects. There's a new patch there, that does the same thing, bit with some different infrastructure around it. With the patches (there are two), jails will work by default the same as they do now: if allow.sysvipc is set, then all jails share the same IPC namespace. If not, jails can't do anything with SYSV IPC. But there are new parameters with more control: sysvmsg, sysvsem, and sysvshm. Setting these to "disable" and "inherit" are the same as the old way of doing things, but setting to "new" will create a jail that has its own namespace for the SYSV IPC keys. The system can still see a jail's IPC objects by their IDs, but the keys will belong only to the jail. And jails won't be able to see each other's IPC, whether or key or by ID. This is the full separation that has been missing from jails so far. I plan to commit these patches pretty soon, to get into the 11 release. I'd like some feedback first if anyone wants to try them out, but barring that I'll accept my feedback after I commit :-). They work at least for some simple test cases, but I don't have anything handy that actually makes significant use of SYSV IPC and I know that others do and have been waiting to see something like this. - Jamie From owner-freebsd-jail@freebsd.org Fri Apr 22 07:55:55 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 4221EB18142 for ; Fri, 22 Apr 2016 07:55:55 +0000 (UTC) (envelope-from 000.fbsd@quip.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 072D61870; Fri, 22 Apr 2016 07:55:54 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 5166328428; Fri, 22 Apr 2016 09:55:51 +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 3F6C728422; Fri, 22 Apr 2016 09:55:50 +0200 (CEST) Message-ID: <5719D906.7010400@quip.cz> Date: Fri, 22 Apr 2016 09:55:50 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:35.0) Gecko/20100101 Firefox/35.0 SeaMonkey/2.32 MIME-Version: 1.0 To: James Gritton , freebsd-jail@FreeBSD.org Subject: Re: SYSV IPC on jails with separate key namespace References: <1c8ef6ff0a3a718d47d94abbcd861fe1@gritton.org> In-Reply-To: <1c8ef6ff0a3a718d47d94abbcd861fe1@gritton.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 07:55:55 -0000 James Gritton wrote on 04/21/2016 19:18: > I've updated patch 48471 > (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=48471) which had a > patch to make jails work the way they should regarding SYSV IPC objects. > There's a new patch there, that does the same thing, bit with some > different infrastructure around it. This is really good news. Thank you James! > I plan to commit these patches pretty soon, to get into the 11 release. > I'd like some feedback first if anyone wants to try them out, but > barring that I'll accept my feedback after I commit :-). They work at > least for some simple test cases, but I don't have anything handy that > actually makes significant use of SYSV IPC and I know that others do and > have been waiting to see something like this. Will this be MFC to 10.x? I don't have any 11 (CURRENT) right now. I would like to test this with few instances of PostgreSQL and Firebird in jails. I don't know when I will have time for it because I am busy with $WORK. I hope I will try it soon! Thank you for your ongoing work on jails. Miroslav Lachman From owner-freebsd-jail@freebsd.org Fri Apr 22 13:00:25 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 07640B18760 for ; Fri, 22 Apr 2016 13:00:25 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [162.220.209.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DDB7E137D for ; Fri, 22 Apr 2016 13:00:24 +0000 (UTC) (envelope-from jamie@freebsd.org) Received: from gritton.org (gritton.org [162.220.209.3]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u3MD0MDv065895 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Apr 2016 07:00:23 -0600 (MDT) (envelope-from jamie@freebsd.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u3MD0M89065894; Fri, 22 Apr 2016 07:00:22 -0600 (MDT) (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: SYSV IPC on jails with separate key namespace 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: Fri, 22 Apr 2016 07:00:22 -0600 From: James Gritton In-Reply-To: <5719D906.7010400@quip.cz> References: <1c8ef6ff0a3a718d47d94abbcd861fe1@gritton.org> <5719D906.7010400@quip.cz> Message-ID: X-Sender: jamie@freebsd.org User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 13:00:25 -0000 On 2016-04-22 01:55, Miroslav Lachman wrote: > James Gritton wrote on 04/21/2016 19:18: >> I've updated patch 48471 >> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=48471) which had a >> patch to make jails work the way they should regarding SYSV IPC >> objects. >> There's a new patch there, that does the same thing, bit with some >> different infrastructure around it. > > This is really good news. Thank you James! > >> I plan to commit these patches pretty soon, to get into the 11 >> release. >> I'd like some feedback first if anyone wants to try them out, but >> barring that I'll accept my feedback after I commit :-). They work at >> least for some simple test cases, but I don't have anything handy that >> actually makes significant use of SYSV IPC and I know that others do >> and >> have been waiting to see something like this. > > Will this be MFC to 10.x? I don't have any 11 (CURRENT) right now. > I would like to test this with few instances of PostgreSQL and > Firebird in jails. I don't know when I will have time for it because I > am busy with $WORK. I hope I will try it soon! > > Thank you for your ongoing work on jails. Sure, it can go to 10 as well, though I don't recall if it will make it into any releases at this point. And you're welcome :-). - Jamie From owner-freebsd-jail@freebsd.org Sat Apr 23 00:44:34 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 0460AB19597 for ; Sat, 23 Apr 2016 00:44:34 +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 E8A3510C6 for ; Sat, 23 Apr 2016 00:44: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 u3N0iX6j080499 for ; Sat, 23 Apr 2016 00:44:33 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208806] [jail] starting a jail more than once results in the ID file being blown away Date: Sat, 23 Apr 2016 00:44:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jamie@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jamie@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to 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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 00:44:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208806 Jamie Gritton changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |In Progress CC| |jamie@FreeBSD.org Assignee|freebsd-jail@FreeBSD.org |jamie@FreeBSD.org --- Comment #1 from Jamie Gritton --- Created attachment 169586 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169586&action= =3Dedit Stop removing jail.id files when startup fails The diff is quite simple: rc.d/jail used to create the file when a jail started, but after the change to use config files, that was expanded to also remove the file when startup failed. The fix is simply not to do that. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-jail@freebsd.org Sat Apr 23 02:16:39 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 1EBE0B19C0E for ; Sat, 23 Apr 2016 02:16:39 +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 0F45D1A56 for ; Sat, 23 Apr 2016 02:16:39 +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 u3N2GcgK082676 for ; Sat, 23 Apr 2016 02:16:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208663] It is not possible to use spaces in fstab paths when using jails Date: Sat, 23 Apr 2016 02:16:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jamie@FreeBSD.org 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: cc 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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 02:16:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208663 Jamie Gritton changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamie@FreeBSD.org --- Comment #1 from Jamie Gritton --- Created attachment 169588 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169588&action= =3Dedit Use strunvis to escape fstab characters I took at look at getfsent(3), and it uses strunvis(3) to parse escape codes (only in the pathnames). So I've done the same thing when I parse fstab li= nes and the "mount" parameter. Now the example you gave works, with the same \040 for space. The quotes s= till won't work, but then they don't work in getfsent either, so that sounds pro= per. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Apr 23 02:16:55 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 C0E28B19C76 for ; Sat, 23 Apr 2016 02:16:55 +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 B19DA1ADE for ; Sat, 23 Apr 2016 02:16:55 +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 u3N2GtrE093652 for ; Sat, 23 Apr 2016 02:16:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208663] It is not possible to use spaces in fstab paths when using jails Date: Sat, 23 Apr 2016 02:16:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jamie@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jamie@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to bug_status 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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 02:16:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208663 Jamie Gritton changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|freebsd-bugs@FreeBSD.org |jamie@FreeBSD.org Status|New |In Progress --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Apr 23 06:58:38 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 C5856B191E1 for ; Sat, 23 Apr 2016 06:58:38 +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 B48E81F28 for ; Sat, 23 Apr 2016 06:58:38 +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 u3N6wcXP098326 for ; Sat, 23 Apr 2016 06:58:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208663] It is not possible to use spaces in fstab paths when using jails Date: Sat, 23 Apr 2016 06:58:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: portmaster@bsdforge.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jamie@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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 06:58:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208663 --- Comment #2 from Chris Hutchinson --- Won't the following work? $ mkdir /tmp/Space\ Test $ mkdir /tmp/Space\ Mountpoint $ echo "/tmp/Space\ Test /tmp/Space\ Mountpoint" nullfs ro 0 0" >> /etc/fstab.jail_name (untested) Also, isn't fstab called fsTAB for a reason? While I've never tried to create one that uses spaces instead of tabs, I can't help but wonder. :) --Chris --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Apr 23 14:09:25 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 24231B1903E for ; Sat, 23 Apr 2016 14:09:25 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from cosmo.uchicago.edu (cosmo.uchicago.edu [128.135.70.90]) by mx1.freebsd.org (Postfix) with ESMTP id E88FA17AD; Sat, 23 Apr 2016 14:09:20 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: by cosmo.uchicago.edu (Postfix, from userid 48) id C6A63CB8C8D; Sat, 23 Apr 2016 09:09:15 -0500 (CDT) Received: from 76.193.16.109 (SquirrelMail authenticated user valeri) by cosmo.uchicago.edu with HTTP; Sat, 23 Apr 2016 09:09:15 -0500 (CDT) Message-ID: <53868.76.193.16.109.1461420555.squirrel@cosmo.uchicago.edu> In-Reply-To: References: Date: Sat, 23 Apr 2016 09:09:15 -0500 (CDT) Subject: Re: [Bug 208663] It is not possible to use spaces in fstab paths when using jails From: "Valeri Galtsev" To: bugzilla-noreply@freebsd.org Cc: freebsd-jail@freebsd.org Reply-To: galtsev@kicp.uchicago.edu User-Agent: SquirrelMail/1.4.8-5.el5.centos.7 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 14:09:25 -0000 On Sat, April 23, 2016 1:58 am, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663 > > --- Comment #2 from Chris Hutchinson --- > Won't the following work? > > $ mkdir /tmp/Space\ Test > $ mkdir /tmp/Space\ Mountpoint > > $ echo "/tmp/Space\ Test /tmp/Space\ Mountpoint" nullfs ro 0 0" >> > /etc/fstab.jail_name > My attitude would be: keep the spaces out of directory names - at least where educated person: system administrator makes the decision, such as mount points. Not everything that other systems have has to be accepted for FreeBSD. Such as spaces in paths MS Widows system is infested with due to dumb decision by system vendor promoting usernames "Firstname Lastname" like. Just my humble opinion. Valeri > (untested) > > Also, isn't fstab called fsTAB for a reason? While I've never > tried to create one that uses spaces instead of tabs, I > can't help but wonder. :) > > --Chris > > -- > You are receiving this mail because: > You are on the CC list for the bug. > _______________________________________________ > freebsd-jail@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" > ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++ From owner-freebsd-jail@freebsd.org Sat Apr 23 15:14: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 E8968B1AE5E for ; Sat, 23 Apr 2016 15:14: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 D93D61717 for ; Sat, 23 Apr 2016 15:14: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 u3NFEOOO079340 for ; Sat, 23 Apr 2016 15:14:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-jail@FreeBSD.org Subject: [Bug 208663] It is not possible to use spaces in fstab paths when using jails Date: Sat, 23 Apr 2016 15:14:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jamie@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jamie@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.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 15:14:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208663 --- Comment #3 from Jamie Gritton --- No, that won't work - strunvis(3) unfortunately doesn't escape things that = way. Also, getfsent(3) treats all whitespace the same. As it should - I rememb= er being stymied by sendmail.cf files that looked perfect but didn't work righ= t, because there some spaces where a tab should be. --=20 You are receiving this mail because: You are on the CC list for the bug.= From owner-freebsd-jail@freebsd.org Sat Apr 23 15:22: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 4A786B192F4 for ; Sat, 23 Apr 2016 15:22:28 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [162.220.209.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.gritton.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B42F1C96 for ; Sat, 23 Apr 2016 15:22:27 +0000 (UTC) (envelope-from jamie@gritton.org) Received: from gritton.org (gritton.org [162.220.209.3]) by gritton.org (8.15.2/8.15.2) with ESMTPS id u3NFMQMM085185 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 23 Apr 2016 09:22:26 -0600 (MDT) (envelope-from jamie@gritton.org) Received: (from www@localhost) by gritton.org (8.15.2/8.15.2/Submit) id u3NFMQa2085184; Sat, 23 Apr 2016 09:22:26 -0600 (MDT) (envelope-from jamie@gritton.org) X-Authentication-Warning: gritton.org: www set sender to jamie@gritton.org using -f To: freebsd-jail@freebsd.org Subject: Re: [Bug 208663] It is not possible to use spaces in fstab paths when using jails 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: Sat, 23 Apr 2016 09:22:26 -0600 From: James Gritton In-Reply-To: <53868.76.193.16.109.1461420555.squirrel@cosmo.uchicago.edu> References: <53868.76.193.16.109.1461420555.squirrel@cosmo.uchicago.edu> Message-ID: X-Sender: jamie@gritton.org User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Apr 2016 15:22:28 -0000 On 2016-04-23 08:09, Valeri Galtsev wrote: > On Sat, April 23, 2016 1:58 am, bugzilla-noreply@freebsd.org wrote: >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663 >> >> --- Comment #2 from Chris Hutchinson --- >> Won't the following work? >> >> $ mkdir /tmp/Space\ Test >> $ mkdir /tmp/Space\ Mountpoint >> >> $ echo "/tmp/Space\ Test /tmp/Space\ Mountpoint" nullfs ro 0 0" >> >> /etc/fstab.jail_name >> > > My attitude would be: keep the spaces out of directory names - at least > where educated person: system administrator makes the decision, such as > mount points. Not everything that other systems have has to be accepted > for FreeBSD. Such as spaces in paths MS Widows system is infested with > due > to dumb decision by system vendor promoting usernames "Firstname > Lastname" > like. > > Just my humble opinion. There's something to that - spaces in filenames are a big headache. But in this case it's a settled question - it's not something that "other systems" do, but something that is already supported in FreeBSD: getfsent(3) allows an fstab to have escaped characters in path names, so jail(8) should as well. If I could just use getfsent(3) myself this would never have come up, but my need to operate in in-memory strings instead of a file made that inconvenient. Fortunately it just called strunvis(3) which is trivial to add. - Jamie