From owner-freebsd-jail@freebsd.org Mon May 6 21:10:36 2019 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 C791A1596218 for ; Mon, 6 May 2019 21:10:36 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [212.12.50.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gilb.zs64.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34CAF8A8D8 for ; Mon, 6 May 2019 21:10:30 +0000 (UTC) (envelope-from stb@lassitu.de) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 9BBCB23B014; Mon, 6 May 2019 21:10:22 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: Application Jail Shutdown Problem From: Stefan Bethke In-Reply-To: <22066461556647435@iva8-3b901672a9c5.qloud-c.yandex.net> Date: Mon, 6 May 2019 23:10:21 +0200 Cc: freebsd-jail@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <22066461556647435@iva8-3b901672a9c5.qloud-c.yandex.net> To: squiggly foo X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: 34CAF8A8D8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of stb@lassitu.de designates 212.12.50.234 as permitted sender) smtp.mailfrom=stb@lassitu.de X-Spamd-Result: default: False [-2.03 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.96)[-0.962,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[lassitu.de]; NEURAL_HAM_LONG(-0.98)[-0.978,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[gilb.zs64.net]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[234.50.12.212.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.23)[-0.230,0]; IP_SCORE(-0.05)[asn: 13135(-0.26), country: DE(-0.01)]; FREEMAIL_TO(0.00)[yandex.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13135, ipnet:212.12.48.0/21, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 May 2019 21:10:36 -0000 Am 30.04.2019 um 20:03 schrieb squiggly foo : > I use the mount.fstab parameter to mount a number of file systems = before starting a jail which works without any problem. However since = it is an application jail, there are no other processes running inside = the jail other than the one application. As soon as that application = terminates the jail is removed by the host. Would keeping the jail around be an alternative? With the persist parameter, the jail doesn=E2=80=99t go away when the = last process exits, and starting the same (or another) process with the = same jail name will reuse the existing jail. Only when you really want to get rid of the jail you destroy it = explicitly, including unmounting the file systems. Stefan --=20 Stefan Bethke Fon +49 151 14070811 From owner-freebsd-jail@freebsd.org Fri May 10 13:48:03 2019 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 7427215A3577 for ; Fri, 10 May 2019 13:48:03 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (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 4E39571DE4 for ; Fri, 10 May 2019 13:48:00 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 24A0031A for ; Fri, 10 May 2019 09:47:54 -0400 (EDT) Received: from imap6 ([10.202.2.56]) by compute7.internal (MEProxy); Fri, 10 May 2019 09:47:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm2; bh=CBdxLqU1iOsa+k6QxhqBwRSa2OKC8Xw 1JAcW4O7qi60=; b=Sb+43h1QjbGx1S6a3yWE2WPqKQ7CCnHb7WaTmzXVU9YjNzt iUGexur/r1d7I8zgV2LJXcWqK5C2y3cme72OZVnEcCfR3li8hQupXVsklDrekTxc Fc76GQCzypvefnRdYthBnqZilVZsbD/HWaHF1BOcSPUmOVW0RPFWjGaZHr7U+EqV t8WP0MmIS1pbpDlUMUb1x6GiYzSreyBK2KrCEhCOmwpErziuoOKWVRbV2qUf5e80 g7O4/SkZlB4bbH9QPs+LQp7dvoqm6vk705MEsoO57dkFqJLS1lGK0dVeFgFkCySm g+op9xV8Q9NQ2xZ88hJ/yxvg5J1OLXuVrAOqUOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=CBdxLq U1iOsa+k6QxhqBwRSa2OKC8Xw1JAcW4O7qi60=; b=ZSqrNvVjT7njcvrhqf6ezK 2CFYglJ7YQy9HZBRkWydN5/h21j+SpE4oM4UhEVZAHJe4FEwxdLXLNcp0A6wPjQ3 wT1VIGMoNvbFXO/htLu7WAn0pv96z0j09eccFlyGBI3E/xs6dzJ3LCenp9/op0x5 lctK8lWmJi4o/e5hPS0359wQOPqN4ZEIR+eODudGmuVdstqcxlXrCfZpT0u3wshI IK9s9Rnr1TvzUQM31EQTraIBeJMXoGvvxm7pf54zY3CcSAp4DKOv/eLZLOPsfUSx ZYk0LAAskazsIaELchQ4AavReJjvvz828wGPNEExAEYmZ+TGuvbZrfpzLc6oiEyQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeekgdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesrgdtre erreertdenucfhrhhomhepfdffrghvvgcuvehothhtlhgvhhhusggvrhdfuceouggthhes shhkuhhnkhifvghrkhhsrdgrtheqnecurfgrrhgrmhepmhgrihhlfhhrohhmpegutghhse hskhhunhhkfigvrhhkshdrrghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id EB06982152; Fri, 10 May 2019 09:47:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.6-449-gfb3fc5a-fmstable-20190430v1 Mime-Version: 1.0 Message-Id: <8236aa81-6833-4168-90e9-0f06824179ce@www.fastmail.com> In-Reply-To: <9f04fc825b4a931e51c4d7fd5d7ed7e0@freebsd.org> References: <22066461556647435@iva8-3b901672a9c5.qloud-c.yandex.net> <9f04fc825b4a931e51c4d7fd5d7ed7e0@freebsd.org> Date: Fri, 10 May 2019 09:47:52 -0400 From: "Dave Cottlehuber" To: freebsd-jail@freebsd.org Subject: Re: Application Jail Shutdown Problem X-Rspamd-Queue-Id: 4E39571DE4 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=skunkwerks.at header.s=fm2 header.b=Sb+43h1Q; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=ZSqrNvVj; spf=pass (mx1.freebsd.org: domain of dch@skunkwerks.at designates 64.147.123.21 as permitted sender) smtp.mailfrom=dch@skunkwerks.at X-Spamd-Result: default: False [-4.12 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[skunkwerks.at:s=fm2,messagingengine.com:s=fm2]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.21]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-jail@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[skunkwerks.at]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[skunkwerks.at:+,messagingengine.com:+]; MX_GOOD(-0.01)[in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com,in2-smtp.messagingengine.com,in1-smtp.messagingengine.com]; NEURAL_HAM_SHORT(-0.91)[-0.912,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:11403, ipnet:64.147.123.0/24, country:US]; IP_SCORE(-1.61)[ipnet: 64.147.123.0/24(-4.75), asn: 11403(-3.23), country: US(-0.06)]; MID_RHS_WWW(0.50)[]; RCVD_IN_DNSWL_LOW(-0.10)[21.123.147.64.list.dnswl.org : 127.0.5.1] Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2019 13:48:03 -0000 > mount them). So some process needs to be watching to see when the jail > goes away. That would be some kind of watcher that wakes up > occasionally > and sees if the jail is still there. It might be nice to have some > kqueue > support for jails. That or devfs notifications? Plumbing these up to general sysadmin tools would be nice. Dave From owner-freebsd-jail@freebsd.org Fri May 10 17:04:36 2019 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 C702315A7AD3 for ; Fri, 10 May 2019 17:04:36 +0000 (UTC) (envelope-from tim.petrone1@hemscot.com) Received: from sv19.hanbai.com (sv19.hanbai.com [49.212.219.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CF3E81D46 for ; Fri, 10 May 2019 17:04:34 +0000 (UTC) (envelope-from tim.petrone1@hemscot.com) Received: from [74.208.253.180] ([74.208.253.180]) (authenticated) by sv19.hanbai.com (unknown) with ESMTP id x4AGqDoO001313 for ; Sat, 11 May 2019 02:04:32 +0900 Message-Id: <201905101704.x4AGqDoO001313@sv19.hanbai.com> Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Description: Mail message body Subject: 5-10-19 To: freebsd-jail@freebsd.org From: "Timothy Petrone" Date: Fri, 10 May 2019 17:04:31 +0000 Reply-To: tim.petrone@tcbnbp.com X-Rspamd-Queue-Id: 3CF3E81D46 X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [5.40 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[tim.petrone@tcbnbp.com]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.95)[0.953,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-jail@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(1.00)[1.000,0]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[cached: park-mx.above.com]; NEURAL_SPAM_LONG(1.00)[1.000,0]; DMARC_NA(0.00)[hemscot.com]; R_SPF_NA(0.00)[]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:9371, ipnet:49.212.0.0/16, country:JP]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(1.56)[ipnet: 49.212.0.0/16(4.32), asn: 9371(3.52), country: JP(-0.06)] X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 May 2019 17:04:36 -0000 Good day, I have this proposal to share with you and I'm hopeful your experience will= be helpful in closing. Get back to me for more details if interested. Regards, Timothy Petrone. T: +31 970 050 34732