From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 17:47:25 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BCCC106566C; Thu, 21 Jul 2011 17:47:25 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id F307A8FC15; Thu, 21 Jul 2011 17:47:24 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1QjxLJ-000Krh-9W; Thu, 21 Jul 2011 19:47:25 +0200 Date: Thu, 21 Jul 2011 19:47:25 +0200 From: Kurt Jaeger To: Artem Belevich Message-ID: <20110721174725.GG1202@home.opsec.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: freebsd-hackers , freebsd-jail Subject: Re: userland dtrace tools not working in jail X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 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 Jul 2011 17:47:25 -0000 Hi! > > I try to use dtrace in jail on FreeBSD-9-64. [...] > > open("/boot/kernel/kernel",O_RDONLY,00)          ERR#2 'No such file > > or directory' > > Here's your problem ^^^. > > dtrace extracts CTF information from the binaries. In case of kernel > probes, that would be the kernel itself and loadable modules. All that > stuff lives in /boot and is not accessible from your jail. If he copied /boot to the jail, would it work ? -- pi@opsec.eu +49 171 3101372 9 years to go !