From owner-freebsd-current@FreeBSD.ORG Thu Dec 22 19:45: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 71B3A106566B for ; Thu, 22 Dec 2011 19:45:37 +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 260BC8FC12 for ; Thu, 22 Dec 2011 19:45:37 +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 5D08625D389E; Thu, 22 Dec 2011 19:45:36 +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 8A379BD7900; Thu, 22 Dec 2011 19:45:35 +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 0vu5iR3QNXWl; Thu, 22 Dec 2011 19:45:34 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 47577BD7902; Thu, 22 Dec 2011 19:45:34 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: Date: Thu, 22 Dec 2011 19:45:33 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <5A3162A1-4285-41E8-BD0F-FB12F10762DE@lists.zabbadoz.net> References: <01A08619-4DE1-42E6-8F2F-38BB56C8615F@lists.zabbadoz.net> To: Matt Mullins X-Mailer: Apple Mail (2.1084) 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:45:37 -0000 On 22. Dec 2011, at 19:39 , Matt Mullins wrote: > 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=3D. >>=20 >> jail -n foo ... >> or >> jail name=3Dfoo ... >>=20 >> then jexec foo ... >=20 > 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): >=20 I think -l -U root are the defaults; please double-check in = /etc/defaults/rc.conf, so exntending them to: jail__flags=3D"-l -U root -n " is easy. > mmullins@boron 2808 ~ % jls -n > nodying enforce_statfs=3D2 host=3Dnew ip4=3Dnew ip6=3Ddisable jid=3D9 = linux=3Dnew > name=3D9 parent=3D0 path=3D/jails/shell nopersist securelevel=3D-1 > allow.nochflags allow.nomount allow.noquotas allow.noraw_sockets > allow.set_hostname allow.nosocket_af allow.nosysvipc children.cur=3D0 > children.max=3D0 cpuset.id=3D2 host.domainname=3D"" host.hostid=3D0 > host.hostname=3Dboron-shell.local.mmlx.us > host.hostuuid=3D00000000-0000-0000-0000-000000000000 > ip4.addr=3D192.168.33.40 ip4.saddrsel ip6.addr=3D ip6.saddrsel > linux.osname=3DLinux linux.osrelease=3D2.6.16 linux.oss_version=3D198144= >=20 > Is there a "right" way to do this? >=20 > Thanks, > Matt Mullins --=20 Bjoern A. Zeeb You have to have visions! Stop bit received. Insert coin for new address family.