From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 12 07:41:23 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44A99106566C for ; Sat, 12 Mar 2011 07:41:23 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 16CF48FC15 for ; Sat, 12 Mar 2011 07:41:22 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p2C7fKjX058719 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 11 Mar 2011 23:41:21 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <4D7B23A7.5040708@freebsd.org> Date: Fri, 11 Mar 2011 23:41:27 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8 MIME-Version: 1.0 To: Subbsd References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-virtualization@freebsd.org Subject: Re: userland utilites for specific version use the current kernel API X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Mar 2011 07:41:23 -0000 On 3/10/11 9:13 PM, Subbsd wrote: > Hi. > > i have a server with FreeBSD-current (9) kernel and core system that > runs a dozen JAIL-s - some of them is FreeBSD 8x environment , and > part is surrounded on FreeBSD 7x. > My question - despite on COMPAT_FREEBSD{4-7} in the kernel, utilities > do not use those structures in the nucleus, which belong to their > release. For example, the utility in > jail shows: > > sockstat: struct xtcpcb size mismatch > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > > The COMPAT_FREEBSD is not transparent for utilites? is it possible to > have the newer kernel with the minimum of the system, but have JAIL > with earlier versions of FreeBSD environments, where it will work > sockstat (and perhaps some others)? 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" > yes there is a small set of system utilities for which this is true. the answer is generally to compile up some staticly linked versions of those tools and supply them in the jail as replacements for the standard ones. a very quick way to do this is to use the ones in /rescue. (note they are all the same binary, don't make multiple copies..)