From owner-freebsd-jail@FreeBSD.ORG Mon Jul 18 11:07:06 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 4D90D106564A for ; Mon, 18 Jul 2011 11:07:06 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3BAA98FC25 for ; Mon, 18 Jul 2011 11:07:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6IB76Z2026823 for ; Mon, 18 Jul 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6IB75Rm026821 for freebsd-jail@FreeBSD.org; Mon, 18 Jul 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Jul 2011 11:07:05 GMT Message-Id: <201107181107.p6IB75Rm026821@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-jail@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-jail@FreeBSD.org 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: Mon, 18 Jul 2011 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/156111 jail [jail] procstat -b not supported in jail o misc/155765 jail [patch] `buildworld' does not honors WITHOUT_JAIL o conf/154246 jail [jail] [patch] Bad symlink created if devfs mount poin o conf/149050 jail [jail] rcorder ``nojail'' too coarse for Jail+VNET s conf/142972 jail [jail] [patch] Support JAILv2 and vnet in rc.d/jail o conf/141317 jail [patch] uncorrect jail stop in /etc/rc.d/jail o kern/133265 jail [jail] is there a solution how to run nfs client in ja o kern/119842 jail [smbfs] [jail] "Bad address" with smbfs inside a jail o bin/99566 jail [jail] [patch] fstat(1) according to specified jid o bin/32828 jail [jail] w(1) incorrectly handles stale utmp slots with 10 problems total. From owner-freebsd-jail@FreeBSD.ORG Mon Jul 18 19:37:32 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 B2CA31065674; Mon, 18 Jul 2011 19:37:32 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (mx1.psconsult.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 23F408FC19; Mon, 18 Jul 2011 19:37:31 +0000 (UTC) Received: from mx1.psconsult.nl ([80.89.238.138]) by mx1.psconsult.nl (8.14.4/8.14.4) with ESMTP id p6IJ8dwO002741 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 18 Jul 2011 21:08:44 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.4/8.14.4/Submit) id p6IJ8dNL002740; Mon, 18 Jul 2011 21:08:39 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Mon, 18 Jul 2011 21:08:39 +0200 From: Paul Schenkeveld To: freebsd-jail@freebsd.org Message-ID: <20110718190839.GA81421@psconsult.nl> References: <4E114EA9.4000605@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E114EA9.4000605@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-arch@freebsd.org Subject: Re: New jail(8) with configuration files, not yet in head 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: Mon, 18 Jul 2011 19:37:32 -0000 Hi, On Sun, Jul 03, 2011 at 11:24:57PM -0600, Jamie Gritton wrote: > I'm hoping to get the latest version of jail(8) in before the door slams > shut on 9.0. If anyone wants to take a look at the new code and give it > a spin, it may help to ease RE's mind about my tardiness. The included > diff applies to the current usr.sbin/jail directory. In addition to the > new program, it adds a jail.conf(5) man page that explains the config > file format (hint: it's a typical C-style block config). Although I really like this new functionality, there is one issue that I am concerned about. Should all this functionality be integrated into the jail(8) command? In UNIX tradition we have simple interfaces[1] in the base system and jail(8) used to fit in quite well. Your new jail(8) tries to be an all singing and dancing subsystem for managing jails but there will always be users that need one more feature[2]. That's why we have ezjail, jailer, jailadmin and others in ports and over time there will be new ones with new features. Jail(8) is the one FreeBSD command to create, modify and destroy jails and is used by many of these wrappers. Your new jail(8) covers part of the functionality of these wrapper but not all. It may grow new features as people submit ideas and you or someone else is willing to code the feature but there will always be wrappers to suit needs not covered by this jail command. I don't want to start a bikeshed discussion and will shut up immediately if I appear to be the only one concerned but if others care like I do, I'd suggest to put this functionality into a separate program and leave jail(8) to be the minimalistic interface to just control the jail(2) system call from a command interpreter. Again, I'm not against your enhancements, I'm just worried about pollution of OS primitives. With kind regards, Paul Schenkeveld [1] Chown/chgrp/chmod are nice examples, I could easily think of at least a dozen enhancements like only operating on files matching a specific user/group or mapping a list of old uids/gids to a list of new ones or looking up user info in LDAP. Sometimes throwing in find(1) will help you solve the problem at hand, sometimes you need to write a script or program. [2] My favorites: starting jails in parallel, dependency graph of jails, monitoring jails and restarting them when they die, migration of jails to other hosts and populating new jails from a release DVD, /usr/src or the source repository and provisioning jails from a database. From owner-freebsd-jail@FreeBSD.ORG Tue Jul 19 16:02:44 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 4EB6B1065672 for ; Tue, 19 Jul 2011 16:02:44 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from gritton.org (gritton.org [64.34.175.71]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE6B8FC1A for ; Tue, 19 Jul 2011 16:02:39 +0000 (UTC) Received: from denethor.gritton.org (c-174-52-133-59.hsd1.ut.comcast.net [174.52.133.59]) (authenticated bits=0) by gritton.org (8.14.3/8.14.3) with ESMTP id p6JG2bC6077686; Tue, 19 Jul 2011 10:02:38 -0600 (MDT) (envelope-from jamie@FreeBSD.org) Message-ID: <4E25BB7C.4090106@FreeBSD.org> Date: Tue, 19 Jul 2011 11:14:36 -0600 From: Jamie Gritton User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110711 Thunderbird/5.0 MIME-Version: 1.0 To: Paul Schenkeveld References: <4E114EA9.4000605@FreeBSD.org> <20110718190839.GA81421@psconsult.nl> In-Reply-To: <20110718190839.GA81421@psconsult.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@FreeBSD.org, freebsd-arch@FreeBSD.org Subject: Re: New jail(8) with configuration files, not yet in head 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: Tue, 19 Jul 2011 16:02:44 -0000 This project came from a desire to improve the jail startup procedure in rc.d/jail, which remains stuck handling the old fixed-parameter jails. Rather that continue to extend an already unwieldy number of rc.conf shell variables, I opted to add a configuration file like other subsystems use (e.g. apmd, devd). The new jail pseudo-parameters added to the config file exist mostly to match the existing rc.d/jail functionality - the mount.* and exec.* parameters are direct analogs to rc.conf shell variables. Some other parameters match the command-line options of the existing jail(8). I have tried to avoid bloating the command with new features that don't have a reasonably broad base; the only really new things I can think of are the "depend" parameter (dependency graph of jails, as you mentioned in your footnote [2]) and the "vnet.interface" parameter. I wouldn't want to do away with a config file, as that's a much cleaner way to define multiple jails than depending on the rc system or requiring a "roll your own" approach that is currently the only way to use the newer features. Since jail creation is so tied to processes running under them, the exec.* parameters as originally defined by the rc system are best kept; while a single "command" parameter would suffice for many (perhaps most) jails, the flexibility to run commands as either system or jail users, either before or after jail creation, seems an advantage worth keeping. The other big rc bits - mounting filesystems and preparing network interfaces, seem sufficiently broad-based to include for the general populace. There are still featured I'd like to add, mostly in flexibility of the config file - including files, better handling of auto-generated JIDs, stuff like that. I don't really see adding anything else that isn't tied to the basic definition of jails, and of starting them, stopping them, or changing their parameters - all of which the current command-lines usage already does, though not as well. It's clear now that this won't be happening in 9.0. So none of this is in danger of getting pushed through in a hurry. - Jamie On 07/18/11 13:08, Paul Schenkeveld wrote: > Hi, > > On Sun, Jul 03, 2011 at 11:24:57PM -0600, Jamie Gritton wrote: >> I'm hoping to get the latest version of jail(8) in before the door slams >> shut on 9.0. If anyone wants to take a look at the new code and give it >> a spin, it may help to ease RE's mind about my tardiness. The included >> diff applies to the current usr.sbin/jail directory. In addition to the >> new program, it adds a jail.conf(5) man page that explains the config >> file format (hint: it's a typical C-style block config). > > Although I really like this new functionality, there is one issue that > I am concerned about. Should all this functionality be integrated into > the jail(8) command? > > In UNIX tradition we have simple interfaces[1] in the base system and > jail(8) used to fit in quite well. Your new jail(8) tries to be an all > singing and dancing subsystem for managing jails but there will always > be users that need one more feature[2]. That's why we have ezjail, > jailer, jailadmin and others in ports and over time there will be new > ones with new features. > > Jail(8) is the one FreeBSD command to create, modify and destroy jails > and is used by many of these wrappers. Your new jail(8) covers part > of the functionality of these wrapper but not all. It may grow new > features as people submit ideas and you or someone else is willing to > code the feature but there will always be wrappers to suit needs not > covered by this jail command. > > I don't want to start a bikeshed discussion and will shut up immediately > if I appear to be the only one concerned but if others care like I do, > I'd suggest to put this functionality into a separate program and leave > jail(8) to be the minimalistic interface to just control the jail(2) > system call from a command interpreter. > > Again, I'm not against your enhancements, I'm just worried about > pollution of OS primitives. > > With kind regards, > > Paul Schenkeveld > > [1] Chown/chgrp/chmod are nice examples, I could easily think of at > least a dozen enhancements like only operating on files matching a > specific user/group or mapping a list of old uids/gids to a list of > new ones or looking up user info in LDAP. Sometimes throwing in > find(1) will help you solve the problem at hand, sometimes you need > to write a script or program. > > [2] My favorites: starting jails in parallel, dependency graph of jails, > monitoring jails and restarting them when they die, migration of > jails to other hosts and populating new jails from a release DVD, > /usr/src or the source repository and provisioning jails from a > database. > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org" From owner-freebsd-jail@FreeBSD.ORG Wed Jul 20 22:26: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 F312D1065673 for ; Wed, 20 Jul 2011 22:26:25 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id B9A0D8FC0C for ; Wed, 20 Jul 2011 22:26:25 +0000 (UTC) Received: by qyk38 with SMTP id 38so495551qyk.13 for ; Wed, 20 Jul 2011 15:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Eca2vfHpUM13t5gVppeBefinaRk+362geigadNRYJ+w=; b=SFwifcjZVhnSt5bGly3wQC3iDgRyYs/n9ENVEoo5PbopwKECLWHXltcNdpI8LV8GxD crNiQfxz+YGpj1JOmgB6mnACp3mcwSuc7MbkNYmYapFfy+CfRXS94ru+JFxEWK1g3/Wr vRFL2JD9+HSAhaUxNzP0OksOuWXATGZhb1np4= MIME-Version: 1.0 Received: by 10.229.77.161 with SMTP id g33mr7455824qck.131.1311199428353; Wed, 20 Jul 2011 15:03:48 -0700 (PDT) Received: by 10.229.219.19 with HTTP; Wed, 20 Jul 2011 15:03:48 -0700 (PDT) Date: Thu, 21 Jul 2011 02:03:48 +0400 Message-ID: From: Subbsd To: freebsd-jail Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: ip settings not work for jail 'service' type 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: Wed, 20 Jul 2011 22:26:26 -0000 Hi Jail configuration with "complete=94 works perfectly with IP4, IP6 and their secondary. But if try jailed 'service' - it does not work. For example: 1) have uncomment: ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l 2) have jail cfg like: jail_enable=3D"YES" jail_list=3D"example" # Space separated list of names of jails jail_example_rootdir=3D"/" jail_example_hostname=3D"${hostname}" jail_example_interface=3D"lo0" jail_example_ip=3D"192.0.2.10" #jail_example_ip_multi0=3D"10.0.0.1" # secondary - shouldn't work? sockstat show *:21 jail_example_exec_start=3D"service inetd onestart" jail_example_exec_stop=3D"service inetd onestop" 3) service jail start example 4) ftp 192.0.2.10 (no connection) I somewhere was mistaken or it shouldn't work? Thanks From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 00:30:59 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 176791065670 for ; Thu, 21 Jul 2011 00:30:59 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id D38738FC16 for ; Thu, 21 Jul 2011 00:30:58 +0000 (UTC) Received: by iyb11 with SMTP id 11so875488iyb.13 for ; Wed, 20 Jul 2011 17:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=bpx82107GcB1tQ8zgrkX0Rjvxh4Asw6iHwvAmrBn+Us=; b=VLc58QDu10sPQpBQnJUEgC65f+Y5tA2KitweajTZeGtoo9eFpL0c5wV3x+/qtCFfmy NTn6rFBYntSDs1Pr9kjZOau6aeXHeCMswx8koIn2qC4vPsSYqWx7+sayBu3WZoJJiYmn EG1pP4dBJCjO4k3V/OyiqcXw7RciwobdRNMCQ= Received: by 10.231.17.3 with SMTP id q3mr1478153iba.21.1311206659190; Wed, 20 Jul 2011 17:04:19 -0700 (PDT) Received: from schism.local (c-76-124-49-145.hsd1.pa.comcast.net [76.124.49.145]) by mx.google.com with ESMTPS id vj5sm938875icb.23.2011.07.20.17.04.17 (version=SSLv3 cipher=OTHER); Wed, 20 Jul 2011 17:04:17 -0700 (PDT) Message-ID: <4E276D00.1060708@gmail.com> Date: Wed, 20 Jul 2011 20:04:16 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Subbsd References: In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: freebsd-jail Subject: Re: ip settings not work for jail 'service' type 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 00:30:59 -0000 On 7/20/11 6:03 PM, Subbsd wrote: > Hi > > Jail configuration with "complete” works perfectly with IP4, IP6 and > their secondary. > But if try jailed 'service' - it does not work. For example: > > 1) have uncomment: > ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > > 2) have jail cfg like: > jail_enable="YES" > jail_list="example" # Space separated list of names of jails > jail_example_rootdir="/" You are pointing the jail's root directory to the host's root directory. Please see the following Handbook chapter: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html Regards, -- Glen Barber From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 07:46:50 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 A9646106566B for ; Thu, 21 Jul 2011 07:46:49 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 69DC38FC08 for ; Thu, 21 Jul 2011 07:46:49 +0000 (UTC) Received: by qyk38 with SMTP id 38so681809qyk.13 for ; Thu, 21 Jul 2011 00:46:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PFEKQ/FWZ6HSYzkFqGAntY7nc9LXsJcVEQZLmMy6Bqw=; b=H1d02ND/rLMHc4/Hm1eiW120dzXm3zuDoA2+j0UstUqSLwmMEbWz5yZtn87kuOMHpy nyJbJt4M0lOFrEPJD0X1fD3BThlziC8zAq/JtgC/kpqEr++DUg/2J6BA7+XcTEBBzwOF v8RL/JWX+UTj15rcdVV/73TJMhUlqyOtPCl6M= MIME-Version: 1.0 Received: by 10.229.47.18 with SMTP id l18mr7957965qcf.55.1311234408491; Thu, 21 Jul 2011 00:46:48 -0700 (PDT) Received: by 10.229.219.19 with HTTP; Thu, 21 Jul 2011 00:46:48 -0700 (PDT) In-Reply-To: <4E276D00.1060708@gmail.com> References: <4E276D00.1060708@gmail.com> Date: Thu, 21 Jul 2011 11:46:48 +0400 Message-ID: From: Subbsd To: Glen Barber Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-jail Subject: Re: ip settings not work for jail 'service' type 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 07:46:50 -0000 Hi On Thu, Jul 21, 2011 at 4:04 AM, Glen Barber wrote: > You are pointing the jail's root directory to the host's root directory. > > Please see the following Handbook chapter: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-build.html > Thanks, i use this non-standard configuration for split services (run multiple process with difference configuration), no for security reason. > Regards, > > -- > Glen Barber > From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 12:37:04 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 858B7106564A for ; Thu, 21 Jul 2011 12:37:04 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 2B62A8FC13 for ; Thu, 21 Jul 2011 12:37:03 +0000 (UTC) Received: by qyk30 with SMTP id 30so3761807qyk.13 for ; Thu, 21 Jul 2011 05:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=El1R4VkRyE9jAuF1zP5JwSiVemnO7nwIPpHFISFHZ7U=; b=tFLwb4JmAPbwWqsmEuSxLeniwI3FLWlzvGgiS7kCUf5LBmgw3SSMy+e/4SyAz86/tx eRZhGfYYtohxMewRXK3gE2A8i7rWdxDSGxHJyCCJztbwh8pBSe1wBWKmp4R1UzYIr7Dj bEk69ALxXxJ3IISaAQxzb3k5eddmjrmuz7t04= MIME-Version: 1.0 Received: by 10.229.51.138 with SMTP id d10mr191901qcg.17.1311251823217; Thu, 21 Jul 2011 05:37:03 -0700 (PDT) Received: by 10.229.219.19 with HTTP; Thu, 21 Jul 2011 05:37:03 -0700 (PDT) Date: Thu, 21 Jul 2011 16:37:03 +0400 Message-ID: From: Subbsd To: freebsd-jail , freebsd-hackers Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: 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 12:37:04 -0000 Hi I try to use dtrace in jail on FreeBSD-9-64. Kernel have options: --- include GENERIC ident GENERIC-DTRACE options KDTRACE_FRAME # Ensure frames are compiled in options KDTRACE_HOOKS # Kernel DTrace hooks options DDB_CTF # all architectures - kernel ELF linker loads CTF data options KDTRACE_FRAME # amd64 - ensure frames are compiled in makeoptions WITH_CTF=1 --- All world compiling with WITH_CTF=1 KNOBS. And dtraccing works fine in 'master' hosts When i try use it in chrooted environment (getting by installworld DESTDIR="diffrence path" from WITH_CTF=1 objects) it doesn't work. After make -C /usr/src installworld distribution DESTDIR="/usr/a": bsd# mount - t devfs devfs /usr/a/dev (dtrace used /dev/dtrace/* special files) bsd# dtrace -l |wc -l 42300 bsd# chroot /usr/a dtrace -l |wc -l 42300 bsd# dtrace -n 'syscall:::entry { @sc[execname, probefunc] = count(); }' ^C (...) bsd# chroot /usr/a dtrace -n 'syscall:::entry { @sc[execname, probefunc] = count(); }' dtrace: invalid probe specifier syscall:::entry { @sc[execname, probefunc] = count(); }: "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t" getpid() = 2786 (0xae2) __sysctl(0x7fffffffd2d0,0x2,0x800a72a80,0x7fffffffd2d8,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd1e0,0x2,0x7fffffffd220,0x7fffffffd288,0x800863e10,0xd) = 0 (0x0) __sysctl(0x7fffffffd220,0x3,0x800a71968,0x7fffffffd2d8,0x0,0x0) = 0 (0x0) readlink("/etc/malloc.conf",0x7fffffffcdc0,1024) ERR#2 'No such file or directory' issetugid(0x801a58801,0x7fffffffcdc0,0x0,0x2,0x7fffffffcdc0,0x0) = 0 (0x0) break(0x800000) = 0 (0x0) mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34389770240 (0x801ca4000) mmap(0x8020a4000,3522560,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34393964544 (0x8020a4000) munmap(0x801ca4000,3522560) = 0 (0x0) thr_self(0x802007400,0x0,0x0,0x0,0x40,0x7fffffffc8c0) = 0 (0x0) mmap(0x7fffffbfe000,4096,PROT_NONE,MAP_ANON,-1,0x0) = 140737484152832 (0x7fffffbfe000) rtprio_thread(0x0,0x18735,0x7fffffffd290,0x1000,0xffffffff,0x0) = 0 (0x0) sysarch(0x81,0x7fffffffd2b8,0x800a71540,0x800a718e0,0xffffffff,0x0) = 0 (0x0) sigaction(32,{ 0x80085d290 SA_SIGINFO ss_t },0x0) = 0 (0x0) sigprocmask(SIG_UNBLOCK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) getrlimit(RLIMIT_NOFILE,{ cur=11095,max=11095 }) = 0 (0x0) setrlimit(RLIMIT_NOFILE,{ cur=11095,max=11095 }) = 0 (0x0) __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x16) = 0 (0x0) __sysctl(0x7fffffffd1d0,0x3,0x0,0x7fffffffd358,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x16) = 0 (0x0) __sysctl(0x7fffffffd1d0,0x3,0x80203b080,0x7fffffffd358,0x0,0x0) = 0 (0x0) open("/dev/dtrace/dtrace",O_RDONLY,00) = 3 (0x3) open("/dev/dtrace/profile",O_RDONLY,00) = 4 (0x4) open("/dev/dtrace/syscall",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/syscall",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/vfs",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/sctp",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/callout_execute",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/proc",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/mac",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/mac_framework",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/priv",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/lockstat",O_RDONLY,00) = 5 (0x5) open("/dev/dtrace/dtmalloc",O_RDONLY,00) = 6 (0x6) open("/dev/dtrace/fbt",O_RDONLY,00) = 7 (0x7) open("/dev/dtrace/nfsclient",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/nfscl",O_RDONLY,00) ERR#2 'No such file or directory' open("/dev/dtrace/dtrace",O_RDWR,00) = 8 (0x8) open("/dev/dtrace/fasttrap",O_RDWR,00) = 9 (0x9) close(7) = 0 (0x0) close(6) = 0 (0x0) close(5) = 0 (0x0) close(4) = 0 (0x0) close(3) = 0 (0x0) fcntl(8,F_SETFD,FD_CLOEXEC) = 0 (0x0) fcntl(9,F_SETFD,FD_CLOEXEC) = 0 (0x0) __sysctl(0x7fffffffd230,0x2,0x802041b70,0x7fffffffd228,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd230,0x2,0x802041c70,0x7fffffffd228,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd230,0x2,0x802041d70,0x7fffffffd228,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd230,0x2,0x802041e70,0x7fffffffd228,0x0,0x0) = 0 (0x0) __sysctl(0x7fffffffd230,0x2,0x802041f70,0x7fffffffd228,0x0,0x0) = 0 (0x0) ioctl(8,0x4030780a { IOR 0x78('x'), 10, 48 },0x2041010) = 0 (0x0) __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad61c4,0xd) = 0 (0x0) __sysctl(0x7fffffffd1d0,0x2,0x7fffffffd370,0x7fffffffd358,0x0,0x0) = 0 (0x0) kldnext(0) = 1 (0x1) kldstat(1,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/kernel",O_RDONLY,00) ERR#2 'No such file or directory' stat("/usr/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such file or directory' stat("/usr/share/nls/libc/C",0x7fffffffbb30) ERR#2 'No such file or directory' stat("/usr/local/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such file or directory' stat("/usr/local/share/nls/libc/C",0x7fffffffbb30) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(1) = 2 (0x2) kldstat(2,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/geom_mirror.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(2) = 3 (0x3) kldstat(3,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/accf_data.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(3) = 4 (0x4) kldstat(4,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/accf_dns.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(4) = 5 (0x5) kldstat(5,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/accf_http.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(5) = 6 (0x6) kldstat(6,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtrace.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(6) = 7 (0x7) kldstat(7,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/cyclic.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(7) = 8 (0x8) kldstat(8,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/opensolaris.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(8) = 9 (0x9) kldstat(9,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtrace_test.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(9) = 10 (0xa) kldstat(10,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtraceall.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(10) = 11 (0xb) kldstat(11,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtmalloc.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(11) = 12 (0xc) kldstat(12,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtnfscl.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(12) = 13 (0xd) kldstat(13,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/dtnfsclient.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(13) = 14 (0xe) kldstat(14,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/nfsclient.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(14) = 15 (0xf) kldstat(15,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/nfs_common.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(15) = 16 (0x10) kldstat(16,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/fbt.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(16) = 17 (0x11) kldstat(17,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/fasttrap.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(17) = 18 (0x12) kldstat(18,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/lockstat.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(18) = 19 (0x13) kldstat(19,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/sdt.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(19) = 20 (0x14) kldstat(20,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/systrace.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(20) = 21 (0x15) kldstat(21,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/systrace_freebsd32.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(21) = 22 (0x16) kldstat(22,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/profile.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(22) = 23 (0x17) kldstat(23,0x7fffffffc1d0) = 0 (0x0) open("/boot/kernel/nullfs.ko",O_RDONLY,00) ERR#2 'No such file or directory' close(-1) ERR#9 'Bad file descriptor' kldnext(23) = 0 (0x0) getegid() = 0 (0x0) geteuid() = 0 (0x0) getgid() = 0 (0x0) getpid() = 2786 (0xae2) getpgid(0) = 2785 (0xae1) getppid() = 2785 (0xae1) getsid(0) = 52367 (0xcc8f) getuid() = 0 (0x0) mmap(0x0,706,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366447616 (0x800666000) mprotect(0x800666000,706,PROT_READ) = 0 (0x0) mmap(0x0,730,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366451712 (0x800667000) mprotect(0x800667000,730,PROT_READ) = 0 (0x0) munmap(0x800666000,706) = 0 (0x0) mmap(0x0,480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366447616 (0x800666000) mprotect(0x800666000,480,PROT_READ) = 0 (0x0) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc950) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc930) = 0 (0x0) stat("/usr/lib/dtrace",{ mode=drwxr-xr-x ,inode=3457372,size=512,blksize=32768 }) = 0 (0x0) open("/usr/lib/dtrace",O_NONBLOCK|0x20000,0201020200) = 3 (0x3) fstat(3,{ mode=drwxr-xr-x ,inode=3457372,size=512,blksize=32768 }) = 0 (0x0) fcntl(3,F_SETFD,FD_CLOEXEC) = 0 (0x0) fstatfs(0x3,0x7fffffffcd40,0x802001a20,0x607d90,0x607fb0,0xfffff800) = 0 (0x0) getdirentries(0x3,0x802116000,0x1000,0x802114488,0x607fb0,0xfffffffd) = 512 (0x200) open("/usr/lib/dtrace/errno.d",O_RDONLY,0666) = 4 (0x4) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(4,{ mode=-r--r--r-- ,inode=3458159,size=6900,blksize=32768 }) = 0 (0x0) read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 6900 (0x1af4) read(4,0x802160000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6e0) = 0 (0x0) madvise(0x8021b8000,0xe000,0x5,0x1b7,0x7,0x7fffffffbef0) = 0 (0x0) close(4) = 0 (0x0) open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666) = 4 (0x4) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(4,{ mode=-r--r--r-- ,inode=3458160,size=3186,blksize=32768 }) = 0 (0x0) read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3186 (0xc72) read(4,0x802160000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6e0) = 0 (0x0) close(4) = 0 (0x0) madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) = 0 (0x0) madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) = 0 (0x0) open("/usr/lib/dtrace/signal.d",O_RDONLY,0666) = 4 (0x4) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(4,{ mode=-r--r--r-- ,inode=3458161,size=3111,blksize=32768 }) = 0 (0x0) read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3111 (0xc27) read(4,0x802160000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6e0) = 0 (0x0) close(4) = 0 (0x0) madvise(0x8021b8000,0x5000,0x5,0x1b7,0x7,0x0) = 0 (0x0) madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0) = 0 (0x0) open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666) = 4 (0x4) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(4,{ mode=-r--r--r-- ,inode=3458162,size=2009,blksize=32768 }) = 0 (0x0) read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 2009 (0x7d9) read(4,0x802160000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6e0) = 0 (0x0) close(4) = 0 (0x0) madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) = 0 (0x0) madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) = 0 (0x0) open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) = 4 (0x4) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(4,{ mode=-r--r--r-- ,inode=3458163,size=3593,blksize=32768 }) = 0 (0x0) read(4,"/* "...,32768) = 3593 (0xe09) read(4,0x802160000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6e0) = 0 (0x0) close(4) = 0 (0x0) madvise(0x8021b8000,0x6000,0x5,0x1b7,0x7,0x0) = 0 (0x0) madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0) = 0 (0x0) getdirentries(0x3,0x802116000,0x1000,0x802114488,0x7fffffffc690,0x7fffffffc690) = 0 (0x0) lseek(3,0x0,SEEK_SET) = 0 (0x0) close(3) = 0 (0x0) open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) = 3 (0x3) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(3,{ mode=-r--r--r-- ,inode=3458163,size=3593,blksize=32768 }) = 0 (0x0) read(3,"/* "...,32768) = 3593 (0xe09) read(3,0x80211d000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6b0) = 0 (0x0) close(3) = 0 (0x0) madvise(0x80217e000,0x1000,0x5,0x23d0,0x7,0xffffffff) = 0 (0x0) madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0) open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666) = 3 (0x3) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(3,{ mode=-r--r--r-- ,inode=3458162,size=2009,blksize=32768 }) = 0 (0x0) read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 2009 (0x7d9) read(3,0x80211d000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6b0) = 0 (0x0) close(3) = 0 (0x0) madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0) open("/usr/lib/dtrace/signal.d",O_RDONLY,0666) = 3 (0x3) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(3,{ mode=-r--r--r-- ,inode=3458161,size=3111,blksize=32768 }) = 0 (0x0) read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3111 (0xc27) read(3,0x80211d000,32768) = 0 (0x0) ioctl(0,TIOCGETA,0xffffc6b0) = 0 (0x0) close(3) = 0 (0x0) madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0) open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666) = 3 (0x3) sigprocmask(SIG_BLOCK,0x0,0x0) = 0 (0x0) fstat(3,{ mode=-r--r--r-- ,inode=3458160,size=3186,blksize=32768 }) = 0 (0x0) read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) = 3186 (0xc72) read(3,0x80211d000,32768) = 0 (0x0) mmap(0x0,495,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366455808 (0x800668000) mprotect(0x800668000,495,PROT_READ) = 0 (0x0) munmap(0x800666000,480) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) mmap(0x0,573,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34366447616 (0x800666000) mprotect(0x800666000,573,PROT_READ) = 0 (0x0) munmap(0x800668000,495) = 0 (0x0) close(3) = 0 (0x0) madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) = 0 (0x0) dtrace: write(2,"dtrace: ",8) = 8 (0x8) invalid probe specifier syscall:::entry { @sc[execname, probefunc] = count(); }write(2,"invalid probe specifier syscall:"...,79) = 79 (0x4f) : "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t" write(2,": "/usr/lib/dtrace/psinfo.d", li"...,65) = 65 (0x41) madvise(0x802181000,0x1000,0x5,0x2418,0x7,0x8020019c0) = 0 (0x0) madvise(0x80217d000,0x1000,0x5,0x23b8,0x7,0x8020019c0) = 0 (0x0) madvise(0x80217a000,0x1000,0x5,0x2370,0x7,0x8020019c0) = 0 (0x0) madvise(0x802175000,0x2000,0x5,0x174,0x7,0x8020019c0) = 0 (0x0) madvise(0x80217e000,0x2000,0x5,0x17d,0x7,0x1) = 0 (0x0) madvise(0x80217b000,0x1000,0x5,0x2388,0x7,0x1) = 0 (0x0) madvise(0x802177000,0x1000,0x5,0x2328,0x7,0x1) = 0 (0x0) madvise(0x802115000,0x1000,0x5,0x19f8,0x7,0x1) = 0 (0x0) madvise(0x80217c000,0x1000,0x5,0x23a0,0x7,0x1) = 0 (0x0) madvise(0x802178000,0x2000,0x5,0x177,0x7,0x1) = 0 (0x0) madvise(0x802113000,0x2000,0x5,0x112,0x7,0x1) = 0 (0x0) munmap(0x800667000,730) = 0 (0x0) munmap(0x800666000,573) = 0 (0x0) madvise(0x802180000,0x1000,0x5,0x2400,0x7,0xffffffff) = 0 (0x0) madvise(0x802111000,0x2000,0x5,0x110,0x7,0xffffffff) = 0 (0x0) madvise(0x8020c1000,0x1000,0x5,0x1218,0x7,0xffffffff) = 0 (0x0) madvise(0x802088000,0x1000,0x5,0xcc0,0x7,0xffffffff) = 0 (0x0) close(8) = 0 (0x0) close(9) = 0 (0x0) madvise(0x8020c4000,0x1000,0x5,0x1260,0x7,0xffffffff) = 0 (0x0) madvise(0x8020bd000,0x1000,0x5,0x11b8,0x7,0xffffffff) = 0 (0x0) madvise(0x8020a6000,0x1000,0x5,0xf90,0x7,0xffffffff) = 0 (0x0) madvise(0x802094000,0x1000,0x5,0xde0,0x7,0xffffffff) = 0 (0x0) madvise(0x802085000,0x1000,0x5,0xc78,0x7,0xffffffff) = 0 (0x0) madvise(0x8020c3000,0x1000,0x5,0x1248,0x7,0xffffffff) = 0 (0x0) madvise(0x80209d000,0x2000,0x5,0x9c,0x7,0xffffffff) = 0 (0x0) madvise(0x802086000,0x1000,0x5,0xc90,0x7,0xffffffff) = 0 (0x0) madvise(0x80203f000,0x1000,0x5,0x5e8,0x7,0xffffffff) = 0 (0x0) madvise(0x802084000,0x1000,0x5,0xc60,0x7,0x8020011e0) = 0 (0x0) madvise(0x802040000,0x3000,0x5,0x3f,0x7,0x8020011e0) = 0 (0x0) madvise(0x80203c000,0x1000,0x5,0x5a0,0x7,0x8020011e0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) = 0 (0x0) sigprocmask(SIG_SETMASK,0x0,0x0) = 0 (0x0) process exit, rval = 1 - i can see anything that hinders dtrace to be happy. Any ideas? Thanks. From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 12:51:07 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 3FD70106564A for ; Thu, 21 Jul 2011 12:51:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id ECCE38FC14 for ; Thu, 21 Jul 2011 12:51:06 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id D615325D3810; Thu, 21 Jul 2011 12:51:05 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 004B2BD3C21; Thu, 21 Jul 2011 12:51:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id nXltkOl+04eG; Thu, 21 Jul 2011 12:51:03 +0000 (UTC) Received: from [IPv6:::1] (shell.eq4-01.sbone.de [IPv6:fde9:577b:c1a9:3161::401:22]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 69138BD3BC2; Thu, 21 Jul 2011 12:51:01 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 From: "Bjoern A. Zeeb" In-Reply-To: Date: Thu, 21 Jul 2011 12:50:59 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <02CBAA19-5015-4A5A-B4BB-D3FA7EB4DB65@lists.zabbadoz.net> References: To: Subbsd X-Mailer: Apple Mail (2.1084) Cc: freebsd-jail Subject: Re: ip settings not work for jail 'service' type 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 12:51:07 -0000 On Jul 20, 2011, at 10:03 PM, Subbsd wrote: > Hi >=20 > Jail configuration with "complete=94 works perfectly with IP4, IP6 and > their secondary. > But if try jailed 'service' - it does not work. For example: >=20 > 1) have uncomment: > ftp stream tcp nowait root /usr/libexec/ftpd ftpd = -l >=20 > 2) have jail cfg like: > jail_enable=3D"YES" > jail_list=3D"example" # Space separated list of names of = jails > jail_example_rootdir=3D"/" > jail_example_hostname=3D"${hostname}" > jail_example_interface=3D"lo0" > jail_example_ip=3D"192.0.2.10" > #jail_example_ip_multi0=3D"10.0.0.1" # secondary - shouldn't work? > sockstat show *:21 > jail_example_exec_start=3D"service inetd onestart" > jail_example_exec_stop=3D"service inetd onestop" >=20 > 3) > service jail start example And does inetd run at that point? Did it log anything to your logfiles? >=20 > 4) > ftp 192.0.2.10 > (no connection) >=20 > I somewhere was mistaken or it shouldn't work? Thanks > _______________________________________________ > freebsd-jail@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-jail > To unsubscribe, send any mail to = "freebsd-jail-unsubscribe@freebsd.org" --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family. From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 14:35:33 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 A9A711065670 for ; Thu, 21 Jul 2011 14:35:33 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 68EAE8FC16 for ; Thu, 21 Jul 2011 14:35:33 +0000 (UTC) Received: by qyk38 with SMTP id 38so899725qyk.13 for ; Thu, 21 Jul 2011 07:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BTQZLUloLRUfswWz+/N9TWesJTMHcY2FhR6FDKL3rAI=; b=Gw6OseBZ0OXrZeYz4DaDvDQtkGV11u9PITgXCBV736iaD1xO+0A94VaKeCRxlaQZQV Uwow9qW/kPE760OoDqXH/7cs5Xz8uRu6KGrqfidBxzbERcrKLeXj7mNj/5wUUuBuQEON sieHTrfK4/DMAiL94By1sTgcrr6UOVBYh6O8g= MIME-Version: 1.0 Received: by 10.229.109.210 with SMTP id k18mr301751qcp.93.1311258932712; Thu, 21 Jul 2011 07:35:32 -0700 (PDT) Received: by 10.229.219.19 with HTTP; Thu, 21 Jul 2011 07:35:32 -0700 (PDT) In-Reply-To: <02CBAA19-5015-4A5A-B4BB-D3FA7EB4DB65@lists.zabbadoz.net> References: <02CBAA19-5015-4A5A-B4BB-D3FA7EB4DB65@lists.zabbadoz.net> Date: Thu, 21 Jul 2011 18:35:32 +0400 Message-ID: From: Subbsd To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-jail Subject: Re: ip settings not work for jail 'service' type 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 14:35:33 -0000 Hi On 7/21/11, Bjoern A. Zeeb wrote: > > And does inetd run at that point? Did it log anything to your logfiles? > Yes, inetd in proccess list is available with binding on IP:port. In /var/log/messages i see only inetd[52312]: madvise() failed: Operation not permitted I think inetd+ftpd was the bad example. Now i test with it: jail_i1_ip="192.0.0.1/24" jail_i1_exec_start="/usr/sbin/daemon /usr/sbin/inetd -d -p /var/run/i1.pid /root/i1.conf -wW" jail_i2_ip="192.0.0.2/24" jail_i2_ip_multi0="10.0.0.11" jail_i2_exec_start="/usr/sbin/daemon /usr/sbin/inetd -d -p /var/run/i2.pid /root/i2.conf -wW" /root/i{1,2}.conf have: daytime stream tcp nowait root internal and i get time after jail starting successfully via telnet 192.0.0.1 daytime telnet 192.0.0.2 daytime telnet 10.0.0.11 daytime Thanks for response. Now i see that all fine with ip settings) From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 16:58:38 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 B3EA1106564A for ; Thu, 21 Jul 2011 16:58:38 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 170478FC08 for ; Thu, 21 Jul 2011 16:58:36 +0000 (UTC) Received: by wwe6 with SMTP id 6so1418161wwe.31 for ; Thu, 21 Jul 2011 09:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=uhREBZlu6BNKFz9FKPJ36VpgfZ8GgG1NYcUh6OIWhG4=; b=EYoHbTaqAUC6CCuzzRs6h98rbaxFm7SqA4AWiYodNT2phAYCrOLtSfKNJQfRN8MUaB ZlXEaTAlino8Cu6q67Szj4hCMJYiubnjzkQ+sYWBgswP1eB7hVcqZ+wXoHJzcnBqumpZ mlU6JVj4lS4IYBokn9c/VY6ToFjbEK77BJjXk= MIME-Version: 1.0 Received: by 10.217.4.66 with SMTP id t44mr408948wes.25.1311266212697; Thu, 21 Jul 2011 09:36:52 -0700 (PDT) Sender: artemb@gmail.com Received: by 10.216.46.18 with HTTP; Thu, 21 Jul 2011 09:36:52 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jul 2011 09:36:52 -0700 X-Google-Sender-Auth: M1w88AlEcPUpM8vOtWbR1tStPYc Message-ID: From: Artem Belevich To: Subbsd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 16:58:38 -0000 On Thu, Jul 21, 2011 at 5:37 AM, Subbsd wrote: > Hi > > I try to use dtrace in jail on FreeBSD-9-64. > Kernel have options: > --- > include GENERIC > ident =A0 =A0 =A0 =A0 =A0 GENERIC-DTRACE > options KDTRACE_FRAME =A0 =A0 =A0 =A0 =A0 # Ensure frames are compiled in > options KDTRACE_HOOKS =A0 =A0 =A0 =A0 =A0 # Kernel DTrace hooks > options DDB_CTF =A0 =A0 =A0 =A0 =A0 =A0 =A0# all architectures - kernel E= LF linker > loads CTF data > options KDTRACE_FRAME =A0 =A0 =A0 =A0# amd64 - ensure frames are compiled= in > makeoptions WITH_CTF=3D1 > --- > > All world compiling with WITH_CTF=3D1 KNOBS. And dtraccing works fine in > 'master' hosts > When i try use it in chrooted environment (getting by installworld > DESTDIR=3D"diffrence path" from WITH_CTF=3D1 objects) it doesn't work. > > After > make -C /usr/src installworld distribution DESTDIR=3D"/usr/a": > > bsd# mount - t devfs devfs /usr/a/dev =A0 =A0(dtrace used /dev/dtrace/* > special files) > bsd# dtrace -l |wc -l > =A0 42300 > bsd# chroot /usr/a dtrace -l |wc -l > =A0 42300 > > bsd# dtrace -n 'syscall:::entry { @sc[execname, probefunc] =3D count(); }= ' > ^C > (...) > > bsd# chroot /usr/a dtrace -n 'syscall:::entry { @sc[execname, > probefunc] =3D count(); }' > dtrace: invalid probe specifier syscall:::entry { @sc[execname, > probefunc] =3D count(); }: "/usr/lib/dtrace/psinfo.d", line 37: syntax > error near "uid_t" > > > getpid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 2786 (0xae2) > __sysctl(0x7fffffffd2d0,0x2,0x800a72a80,0x7fffffffd2d8,0x0,0x0) =3D 0 (0x= 0) > __sysctl(0x7fffffffd1e0,0x2,0x7fffffffd220,0x7fffffffd288,0x800863e10,0xd= ) > =3D 0 (0x0) > __sysctl(0x7fffffffd220,0x3,0x800a71968,0x7fffffffd2d8,0x0,0x0) =3D 0 (0x= 0) > readlink("/etc/malloc.conf",0x7fffffffcdc0,1024) ERR#2 'No such file > or directory' > issetugid(0x801a58801,0x7fffffffcdc0,0x0,0x2,0x7fffffffcdc0,0x0) =3D 0 (0= x0) > break(0x800000) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0=3D 0 (0x0) > mmap(0x0,4194304,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34389770240 (0x801ca4000) > mmap(0x8020a4000,3522560,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0= ) > =3D 34393964544 (0x8020a4000) > munmap(0x801ca4000,3522560) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > thr_self(0x802007400,0x0,0x0,0x0,0x40,0x7fffffffc8c0) =3D 0 (0x0) > mmap(0x7fffffbfe000,4096,PROT_NONE,MAP_ANON,-1,0x0) =3D 140737484152832 > (0x7fffffbfe000) > rtprio_thread(0x0,0x18735,0x7fffffffd290,0x1000,0xffffffff,0x0) =3D 0 (0x= 0) > sysarch(0x81,0x7fffffffd2b8,0x800a71540,0x800a718e0,0xffffffff,0x0) =3D 0= (0x0) > sigaction(32,{ 0x80085d290 SA_SIGINFO ss_t },0x0) =3D 0 (0x0) > sigprocmask(SIG_UNBLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > getrlimit(RLIMIT_NOFILE,{ cur=3D11095,max=3D11095 }) =3D 0 (0x0) > setrlimit(RLIMIT_NOFILE,{ cur=3D11095,max=3D11095 }) =3D 0 (0x0) > __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x1= 6) > =3D 0 (0x0) > __sysctl(0x7fffffffd1d0,0x3,0x0,0x7fffffffd358,0x0,0x0) =3D 0 (0x0) > __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad6158,0x1= 6) > =3D 0 (0x0) > __sysctl(0x7fffffffd1d0,0x3,0x80203b080,0x7fffffffd358,0x0,0x0) =3D 0 (0x= 0) > open("/dev/dtrace/dtrace",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =3D 3 (0x3) > open("/dev/dtrace/profile",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0=3D 4 (0x4) > open("/dev/dtrace/syscall",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0ERR#2 'No such= file > or directory' > open("/dev/dtrace/syscall",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0ERR#2 'No such= file > or directory' > open("/dev/dtrace/vfs",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 =A0ERR#2 'No = such file > or directory' > open("/dev/dtrace/sctp",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 ERR#2 'No su= ch file > or directory' > open("/dev/dtrace/callout_execute",O_RDONLY,00) =A0ERR#2 'No such file > or directory' > open("/dev/dtrace/proc",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 ERR#2 'No su= ch file > or directory' > open("/dev/dtrace/mac",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 =A0ERR#2 'No = such file > or directory' > open("/dev/dtrace/mac_framework",O_RDONLY,00) =A0 =A0ERR#2 'No such file > or directory' > open("/dev/dtrace/priv",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 ERR#2 'No su= ch file > or directory' > open("/dev/dtrace/lockstat",O_RDONLY,00) =A0 =A0 =A0 =A0 =3D 5 (0x5) > open("/dev/dtrace/dtmalloc",O_RDONLY,00) =A0 =A0 =A0 =A0 =3D 6 (0x6) > open("/dev/dtrace/fbt",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 7 (0x7= ) > open("/dev/dtrace/nfsclient",O_RDONLY,00) =A0 =A0 =A0 =A0ERR#2 'No such f= ile > or directory' > open("/dev/dtrace/nfscl",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0 =A0ERR#2 'No su= ch file > or directory' > open("/dev/dtrace/dtrace",O_RDWR,00) =A0 =A0 =A0 =A0 =A0 =A0 =3D 8 (0x8) > open("/dev/dtrace/fasttrap",O_RDWR,00) =A0 =A0 =A0 =A0 =A0 =3D 9 (0x9) > close(7) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > close(6) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > close(5) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > fcntl(8,F_SETFD,FD_CLOEXEC) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > fcntl(9,F_SETFD,FD_CLOEXEC) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > __sysctl(0x7fffffffd230,0x2,0x802041b70,0x7fffffffd228,0x0,0x0) =3D 0 (0x= 0) > __sysctl(0x7fffffffd230,0x2,0x802041c70,0x7fffffffd228,0x0,0x0) =3D 0 (0x= 0) > __sysctl(0x7fffffffd230,0x2,0x802041d70,0x7fffffffd228,0x0,0x0) =3D 0 (0x= 0) > __sysctl(0x7fffffffd230,0x2,0x802041e70,0x7fffffffd228,0x0,0x0) =3D 0 (0x= 0) > __sysctl(0x7fffffffd230,0x2,0x802041f70,0x7fffffffd228,0x0,0x0) =3D 0 (0x= 0) > ioctl(8,0x4030780a { IOR 0x78('x'), 10, 48 },0x2041010) =3D 0 (0x0) > __sysctl(0x7fffffffd190,0x2,0x7fffffffd1d0,0x7fffffffd238,0x800ad61c4,0xd= ) > =3D 0 (0x0) > __sysctl(0x7fffffffd1d0,0x2,0x7fffffffd370,0x7fffffffd358,0x0,0x0) =3D 0 = (0x0) > kldnext(0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 1 (0x1) > kldstat(1,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/kernel",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0ERR#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. --Artem > stat("/usr/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such file > or directory' > stat("/usr/share/nls/libc/C",0x7fffffffbb30) =A0 =A0 ERR#2 'No such file > or directory' > stat("/usr/local/share/nls/C/libc.cat",0x7fffffffbb30) ERR#2 'No such > file or directory' > stat("/usr/local/share/nls/libc/C",0x7fffffffbb30) ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 2 (0x2) > kldstat(2,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/geom_mirror.ko",O_RDONLY,00) =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(2) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 3 (0x3) > kldstat(3,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/accf_data.ko",O_RDONLY,00) =A0 =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 4 (0x4) > kldstat(4,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/accf_dns.ko",O_RDONLY,00) =A0 =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 5 (0x5) > kldstat(5,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/accf_http.ko",O_RDONLY,00) =A0 =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(5) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 6 (0x6) > kldstat(6,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/dtrace.ko",O_RDONLY,00) =A0 =A0 =A0 ERR#2 'No such fil= e > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(6) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 7 (0x7) > kldstat(7,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/cyclic.ko",O_RDONLY,00) =A0 =A0 =A0 ERR#2 'No such fil= e > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(7) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 8 (0x8) > kldstat(8,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/opensolaris.ko",O_RDONLY,00) =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(8) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 9 (0x9) > kldstat(9,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > open("/boot/kernel/dtrace_test.ko",O_RDONLY,00) =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(9) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 10 (0xa) > kldstat(10,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/dtraceall.ko",O_RDONLY,00) =A0 =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(10) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 11 (0xb) > kldstat(11,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/dtmalloc.ko",O_RDONLY,00) =A0 =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(11) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 12 (0xc) > kldstat(12,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/dtnfscl.ko",O_RDONLY,00) =A0 =A0 =A0ERR#2 'No such fil= e > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(12) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 13 (0xd) > kldstat(13,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/dtnfsclient.ko",O_RDONLY,00) =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(13) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 14 (0xe) > kldstat(14,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/nfsclient.ko",O_RDONLY,00) =A0 =A0ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(14) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 15 (0xf) > kldstat(15,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/nfs_common.ko",O_RDONLY,00) =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(15) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 16 (0x10) > kldstat(16,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/fbt.ko",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0ERR#2 'No such= file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(16) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 17 (0x11) > kldstat(17,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/fasttrap.ko",O_RDONLY,00) =A0 =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(17) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 18 (0x12) > kldstat(18,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/lockstat.ko",O_RDONLY,00) =A0 =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(18) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 19 (0x13) > kldstat(19,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/sdt.ko",O_RDONLY,00) =A0 =A0 =A0 =A0 =A0ERR#2 'No such= file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(19) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 20 (0x14) > kldstat(20,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/systrace.ko",O_RDONLY,00) =A0 =A0 ERR#2 'No such file > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(20) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 21 (0x15) > kldstat(21,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/systrace_freebsd32.ko",O_RDONLY,00) ERR#2 'No such > file or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(21) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 22 (0x16) > kldstat(22,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/profile.ko",O_RDONLY,00) =A0 =A0 =A0ERR#2 'No such fil= e > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(22) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 23 (0x17) > kldstat(23,0x7fffffffc1d0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =3D 0 (0x0) > open("/boot/kernel/nullfs.ko",O_RDONLY,00) =A0 =A0 =A0 ERR#2 'No such fil= e > or directory' > close(-1) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0ERR#9 'Bad file descriptor' > kldnext(23) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0=3D 0 (0x0) > getegid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0=3D 0 (0x0) > geteuid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0=3D 0 (0x0) > getgid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > getpid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 2786 (0xae2) > getpgid(0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 2785 (0xae1) > getppid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0=3D 2785 (0xae1) > getsid(0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0=3D 52367 (0xcc8f) > getuid() =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > mmap(0x0,706,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34366447616 (0x800666000) > mprotect(0x800666000,706,PROT_READ) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 0 (0x0= ) > mmap(0x0,730,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34366451712 (0x800667000) > mprotect(0x800667000,730,PROT_READ) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 0 (0x0= ) > munmap(0x800666000,706) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=3D 0 (0x0) > mmap(0x0,480,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34366447616 (0x800666000) > mprotect(0x800666000,480,PROT_READ) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 0 (0x0= ) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > ioctl(0,TIOCGETA,0xffffc950) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > ioctl(0,TIOCGETA,0xffffc930) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > stat("/usr/lib/dtrace",{ mode=3Ddrwxr-xr-x > ,inode=3D3457372,size=3D512,blksize=3D32768 }) =3D 0 (0x0) > open("/usr/lib/dtrace",O_NONBLOCK|0x20000,0201020200) =3D 3 (0x3) > fstat(3,{ mode=3Ddrwxr-xr-x ,inode=3D3457372,size=3D512,blksize=3D32768 }= ) =3D 0 (0x0) > fcntl(3,F_SETFD,FD_CLOEXEC) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > fstatfs(0x3,0x7fffffffcd40,0x802001a20,0x607d90,0x607fb0,0xfffff800) =3D = 0 (0x0) > getdirentries(0x3,0x802116000,0x1000,0x802114488,0x607fb0,0xfffffffd) > =3D 512 (0x200) > open("/usr/lib/dtrace/errno.d",O_RDONLY,0666) =A0 =A0=3D 4 (0x4) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(4,{ mode=3D-r--r--r-- ,inode=3D3458159,size=3D6900,blksize=3D32768 = }) =3D 0 (0x0) > read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 6900 (0x1af4) > read(4,0x802160000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6e0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > madvise(0x8021b8000,0xe000,0x5,0x1b7,0x7,0x7fffffffbef0) =3D 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666) =A0 =3D 4 (0x4) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(4,{ mode=3D-r--r--r-- ,inode=3D3458160,size=3D3186,blksize=3D32768 = }) =3D 0 (0x0) > read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 3186 (0xc72) > read(4,0x802160000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6e0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) =3D 0 (0x0) > madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) =3D 0 (0x0) > open("/usr/lib/dtrace/signal.d",O_RDONLY,0666) =A0 =3D 4 (0x4) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(4,{ mode=3D-r--r--r-- ,inode=3D3458161,size=3D3111,blksize=3D32768 = }) =3D 0 (0x0) > read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 3111 (0xc27) > read(4,0x802160000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6e0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x8021b8000,0x5000,0x5,0x1b7,0x7,0x0) =A0 =A0=3D 0 (0x0) > madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0) =A0 =A0=3D 0 (0x0) > open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666) =A0 =3D 4 (0x4) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(4,{ mode=3D-r--r--r-- ,inode=3D3458162,size=3D2009,blksize=3D32768 = }) =3D 0 (0x0) > read(4,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 2009 (0x7d9) > read(4,0x802160000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6e0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x8021b8000,0x1000,0x5,0x2940,0x7,0x7fffffffc690) =3D 0 (0x0) > madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x7fffffffc690) =3D 0 (0x0) > open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) =3D 4 (0x4) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(4,{ mode=3D-r--r--r-- ,inode=3D3458163,size=3D3593,blksize=3D32768 = }) =3D 0 (0x0) > read(4,"/* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"..= .,32768) =3D 3593 (0xe09) > read(4,0x802160000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6e0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(4) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x8021b8000,0x6000,0x5,0x1b7,0x7,0x0) =A0 =A0=3D 0 (0x0) > madvise(0x802160000,0x8000,0x5,0x15f,0x7,0x0) =A0 =A0=3D 0 (0x0) > getdirentries(0x3,0x802116000,0x1000,0x802114488,0x7fffffffc690,0x7ffffff= fc690) > =3D 0 (0x0) > lseek(3,0x0,SEEK_SET) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0=3D 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > open("/usr/lib/dtrace/regs_x86.d",O_RDONLY,0666) =3D 3 (0x3) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(3,{ mode=3D-r--r--r-- ,inode=3D3458163,size=3D3593,blksize=3D32768 = }) =3D 0 (0x0) > read(3,"/* =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"..= .,32768) =3D 3593 (0xe09) > read(3,0x80211d000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6b0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x80217e000,0x1000,0x5,0x23d0,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) =3D 0 (0x0) > open("/usr/lib/dtrace/unistd.d",O_RDONLY,0666) =A0 =3D 3 (0x3) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(3,{ mode=3D-r--r--r-- ,inode=3D3458162,size=3D2009,blksize=3D32768 = }) =3D 0 (0x0) > read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 2009 (0x7d9) > read(3,0x80211d000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6b0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) =3D 0 (0x0) > open("/usr/lib/dtrace/signal.d",O_RDONLY,0666) =A0 =3D 3 (0x3) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(3,{ mode=3D-r--r--r-- ,inode=3D3458161,size=3D3111,blksize=3D32768 = }) =3D 0 (0x0) > read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 3111 (0xc27) > read(3,0x80211d000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > ioctl(0,TIOCGETA,0xffffc6b0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D = 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) =3D 0 (0x0) > open("/usr/lib/dtrace/psinfo.d",O_RDONLY,0666) =A0 =3D 3 (0x3) > sigprocmask(SIG_BLOCK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 = (0x0) > fstat(3,{ mode=3D-r--r--r-- ,inode=3D3458160,size=3D3186,blksize=3D32768 = }) =3D 0 (0x0) > read(3,"/*\n * CDDL HEADER START\n *\n *"...,32768) =3D 3186 (0xc72) > read(3,0x80211d000,32768) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =3D 0 (0x0) > mmap(0x0,495,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34366455808 (0x800668000) > mprotect(0x800668000,495,PROT_READ) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 0 (0x0= ) > munmap(0x800666000,480) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > mmap(0x0,573,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) =3D > 34366447616 (0x800666000) > mprotect(0x800666000,573,PROT_READ) =A0 =A0 =A0 =A0 =A0 =A0 =A0=3D 0 (0x0= ) > munmap(0x800668000,495) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=3D 0 (0x0) > close(3) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x80211d000,0x8000,0x5,0x11c,0x7,0xffffffff) =3D 0 (0x0) > dtrace: write(2,"dtrace: ",8) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0=3D 8 (0x8) > invalid probe specifier syscall:::entry { @sc[execname, probefunc] =3D > count(); }write(2,"invalid probe specifier syscall:"...,79) =3D 79 > (0x4f) > : "/usr/lib/dtrace/psinfo.d", line 37: syntax error near "uid_t" > write(2,": "/usr/lib/dtrace/psinfo.d", li"...,65) =3D 65 (0x41) > madvise(0x802181000,0x1000,0x5,0x2418,0x7,0x8020019c0) =3D 0 (0x0) > madvise(0x80217d000,0x1000,0x5,0x23b8,0x7,0x8020019c0) =3D 0 (0x0) > madvise(0x80217a000,0x1000,0x5,0x2370,0x7,0x8020019c0) =3D 0 (0x0) > madvise(0x802175000,0x2000,0x5,0x174,0x7,0x8020019c0) =3D 0 (0x0) > madvise(0x80217e000,0x2000,0x5,0x17d,0x7,0x1) =A0 =A0=3D 0 (0x0) > madvise(0x80217b000,0x1000,0x5,0x2388,0x7,0x1) =A0 =3D 0 (0x0) > madvise(0x802177000,0x1000,0x5,0x2328,0x7,0x1) =A0 =3D 0 (0x0) > madvise(0x802115000,0x1000,0x5,0x19f8,0x7,0x1) =A0 =3D 0 (0x0) > madvise(0x80217c000,0x1000,0x5,0x23a0,0x7,0x1) =A0 =3D 0 (0x0) > madvise(0x802178000,0x2000,0x5,0x177,0x7,0x1) =A0 =A0=3D 0 (0x0) > madvise(0x802113000,0x2000,0x5,0x112,0x7,0x1) =A0 =A0=3D 0 (0x0) > munmap(0x800667000,730) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=3D 0 (0x0) > munmap(0x800666000,573) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0=3D 0 (0x0) > madvise(0x802180000,0x1000,0x5,0x2400,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802111000,0x2000,0x5,0x110,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x8020c1000,0x1000,0x5,0x1218,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802088000,0x1000,0x5,0xcc0,0x7,0xffffffff) =3D 0 (0x0) > close(8) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > close(9) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =3D 0 (0x0) > madvise(0x8020c4000,0x1000,0x5,0x1260,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x8020bd000,0x1000,0x5,0x11b8,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x8020a6000,0x1000,0x5,0xf90,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802094000,0x1000,0x5,0xde0,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802085000,0x1000,0x5,0xc78,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x8020c3000,0x1000,0x5,0x1248,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x80209d000,0x2000,0x5,0x9c,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802086000,0x1000,0x5,0xc90,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x80203f000,0x1000,0x5,0x5e8,0x7,0xffffffff) =3D 0 (0x0) > madvise(0x802084000,0x1000,0x5,0xc60,0x7,0x8020011e0) =3D 0 (0x0) > madvise(0x802040000,0x3000,0x5,0x3f,0x7,0x8020011e0) =3D 0 (0x0) > madvise(0x80203c000,0x1000,0x5,0x5a0,0x7,0x8020011e0) =3D 0 (0x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > sigprocmask(SIG_BLOCK,SIGHUP|SIGINT|SIGQUIT|SIGKILL|SIGPIPE|SIGALRM|SIGTE= RM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIG= XFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2,0x0) > =3D 0 (0x0) > sigprocmask(SIG_SETMASK,0x0,0x0) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0 (0= x0) > process exit, rval =3D 1 > > - i can see anything that hinders dtrace to be happy. Any ideas? Thanks. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > 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 ! From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 18:11:56 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 3A93D106566B; Thu, 21 Jul 2011 18:11:56 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id CCA948FC18; Thu, 21 Jul 2011 18:11:55 +0000 (UTC) Received: by qyk30 with SMTP id 30so3998422qyk.13 for ; Thu, 21 Jul 2011 11:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=73hoMSCnRzI4RLfnzbtF9GdQd93hyev+wRZoQGGoSqk=; b=BP27TX+mDAERZNaXOwmDQXZ8dpFfSwbB0GdX9ubfROjdqEkH09qxIWellJ/oaTGt7I pBZ2T7zg8Z+KArO6iliNYECehROAGxV9bZfQ9koJ5czRgtD0D1a6ovakEaNmCVHERReR kric2/PcDROt/NDnI3xR5k/QGCvVJ+tvhU6Sw= MIME-Version: 1.0 Received: by 10.229.61.151 with SMTP id t23mr495069qch.245.1311271915099; Thu, 21 Jul 2011 11:11:55 -0700 (PDT) Received: by 10.229.219.19 with HTTP; Thu, 21 Jul 2011 11:11:54 -0700 (PDT) In-Reply-To: <20110721174725.GG1202@home.opsec.eu> References: <20110721174725.GG1202@home.opsec.eu> Date: Thu, 21 Jul 2011 22:11:54 +0400 Message-ID: From: Subbsd To: Kurt Jaeger Content-Type: text/plain; charset=ISO-8859-1 Cc: Artem Belevich , freebsd-jail , freebsd-hackers 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 18:11:56 -0000 Hi On 7/21/11, Kurt Jaeger wrote: > 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 ? Yes! Artem Belevich was right! Copy of my /boot to jail solve my problem. Thanks you, all! May be necessary to document this moment? > > -- > pi@opsec.eu +49 171 3101372 9 years to go > ! > From owner-freebsd-jail@FreeBSD.ORG Thu Jul 21 18:52:13 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 2A13D106566C; Thu, 21 Jul 2011 18:52:13 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 823AB8FC12; Thu, 21 Jul 2011 18:52:12 +0000 (UTC) Received: by vws18 with SMTP id 18so1540069vws.13 for ; Thu, 21 Jul 2011 11:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=sahbWJhEucr1EgbAPHNib15yyDMwiJTNJ4uHB7HW24w=; b=B0kIygbWbo/RC81WSDDLuLqs17glHmIUFRsueCDYEzs8l2DW4hm1n8zDY1kzI7NZT3 D3qaaCohhNALfHgdc1nKOT7bMLYlQQCwKP28qcHdSMCUk7wdR5zad9yYCg/PvgNwnVnA 3sGQFhaGUFomeLR7IRLW6frY9RgLM0D6wFAEk= Received: by 10.52.88.196 with SMTP id bi4mr648808vdb.320.1311274331923; Thu, 21 Jul 2011 11:52:11 -0700 (PDT) Received: from schism.local (75-146-225-65-Philadelphia.hfc.comcastbusiness.net [75.146.225.65]) by mx.google.com with ESMTPS id cg6sm798941vdc.29.2011.07.21.11.52.09 (version=SSLv3 cipher=OTHER); Thu, 21 Jul 2011 11:52:10 -0700 (PDT) Message-ID: <4E287559.9030206@gmail.com> Date: Thu, 21 Jul 2011 14:52:09 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Subbsd References: <20110721174725.GG1202@home.opsec.eu> In-Reply-To: X-Enigmail-Version: 1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Artem Belevich , Kurt Jaeger , 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 18:52:13 -0000 On 7/21/11 2:11 PM, Subbsd wrote: >> If he copied /boot to the jail, would it work ? > > Yes! Artem Belevich was right! > Copy of my /boot to jail solve my problem. Thanks you, all! > May be necessary to document this moment? > Maybe a nullfs mount would be more space efficient. -- Glen Barber