From owner-freebsd-jail@freebsd.org Tue Oct 10 21:25:20 2017 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 74376E3D7D9; Tue, 10 Oct 2017 21:25:20 +0000 (UTC) (envelope-from srs0=q5lg=bj=sigsegv.be=kristof@codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 38FD56DB06; Tue, 10 Oct 2017 21:25:20 +0000 (UTC) (envelope-from srs0=q5lg=bj=sigsegv.be=kristof@codepro.be) Received: from [192.168.228.1] (ptr-8ripyygwistxihisxdg.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:2419:4e02:a4bd:5d27:6ea9:2df4]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 93EA07A35; Tue, 10 Oct 2017 23:25:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1507670715; bh=s6t0zCQ4cDYoZotkS4LZ+XZH6PgpMTUT7NCxQ60+KQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=TA9/kB25FTIGX9jrsnuc8jwFyyVtbEmn17OtYEp0UuTiE40gXmCc8vu+j7ZGJC1Rm Vee2HozHAOxo6aTPSo0cF+FN9On4Xq9tLiBgDMTVRosmvmxR6ye4ydzJSi1xeUBe58 kAuK5BGFPMxmODsncu0RkRufwf4Ynn/0ozSPbKZo= From: "Kristof Provost" To: "Oleg Ginzburg" Cc: "FreeBSD Current" , "Goran =?utf-8?q?Meki=C4=87?=" , freebsd-jail@freebsd.org Subject: Re: VNET jail and dhclient Date: Tue, 10 Oct 2017 23:25:14 +0200 Message-ID: <6BA6DE01-9D89-4790-99CD-73485722BF14@sigsegv.be> In-Reply-To: References: <20171009072547.jauim6tlfennydf5@hal9000.meka.no-ip.org> <6D37D4AC-9DF4-4D55-8614-43CFC6BDD45E@sigsegv.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6092) 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: Tue, 10 Oct 2017 21:25:20 -0000 On 10 Oct 2017, at 23:10, Oleg Ginzburg wrote: > What is your FreeBSD version? This problem reproduced on FreeBSD 12 > only. > /var/empty is exist and trivial test: > I’m running r324317 on CURRENT, yes. What arguments are you calling dhclient with? Clearly there’s a difference between what you’re doing and what I’m doing. > I'm not sure if this fd leak (due to pidfile_remove at the end of > dhclient), nevertheless closing pid fd in my jail/FreeBSD12 before > chroot > solve dhclient issue. I would not expect an open file descriptor to be a problem, unless perhaps you’ve got an open directory and kern.chroot_allow_open_directories is unset. Regards, Kristof