From owner-freebsd-current@FreeBSD.ORG Thu Dec 22 19:39:37 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E534106566C for ; Thu, 22 Dec 2011 19:39:37 +0000 (UTC) (envelope-from mokomull@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 052A28FC16 for ; Thu, 22 Dec 2011 19:39:36 +0000 (UTC) Received: by werb13 with SMTP id b13so6604776wer.13 for ; Thu, 22 Dec 2011 11:39:36 -0800 (PST) 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=ivycHaw6yox5K1E3KcOPeITSSbJ6vteKbdeOyDSHv3Y=; b=al15pdYaMOIrheHBqnso33n3VbC8TQFcvPc/rpEfhDZl/MUAD6umVTnrQfPCYjQ4+5 hdlqwj3Lc8no8NtqV8sOQOQp58JHU2O0+ZSdNklYRDKtagqPdyhceMFmHioG6tfE3Som whh4IxJafhT+aqvU9U6rgFgMKHJ4obTdQZT4s= MIME-Version: 1.0 Received: by 10.216.136.74 with SMTP id v52mr12429718wei.13.1324582775948; Thu, 22 Dec 2011 11:39:35 -0800 (PST) Received: by 10.223.154.135 with HTTP; Thu, 22 Dec 2011 11:39:35 -0800 (PST) In-Reply-To: References: <01A08619-4DE1-42E6-8F2F-38BB56C8615F@lists.zabbadoz.net> Date: Thu, 22 Dec 2011 13:39:35 -0600 Message-ID: From: Matt Mullins To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@freebsd.org, Dan The Man Subject: Re: jexec -h hostname option X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2011 19:39:37 -0000 On Thu, Dec 22, 2011 at 1:31 PM, Bjoern A. Zeeb wrote: > jexec on a name works fine if you start the jail with a name as well. > See the jail(8) man page on how to either use -n or name=. > > jail -n foo ... > or > jail name=foo ... > > then jexec foo ... I've wanted to be able to do this since I read that in the jexec man page, but it doesn't seem that /etc/rc.d/jail starts jails with that option (at least in 9.0-RC3): mmullins@boron 2808 ~ % jls -n nodying enforce_statfs=2 host=new ip4=new ip6=disable jid=9 linux=new name=9 parent=0 path=/jails/shell nopersist securelevel=-1 allow.nochflags allow.nomount allow.noquotas allow.noraw_sockets allow.set_hostname allow.nosocket_af allow.nosysvipc children.cur=0 children.max=0 cpuset.id=2 host.domainname="" host.hostid=0 host.hostname=boron-shell.local.mmlx.us host.hostuuid=00000000-0000-0000-0000-000000000000 ip4.addr=192.168.33.40 ip4.saddrsel ip6.addr= ip6.saddrsel linux.osname=Linux linux.osrelease=2.6.16 linux.oss_version=198144 Is there a "right" way to do this? Thanks, Matt Mullins