From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 12:51:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 724BE16A4BF for ; Wed, 10 Sep 2003 12:51:09 -0700 (PDT) Received: from smtp.volant.org (gate.volant.org [207.111.218.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E51543F93 for ; Wed, 10 Sep 2003 12:51:08 -0700 (PDT) (envelope-from patl+freebsd@volant.org) Received: from 64-144-229-193.client.dsl.net ([64.144.229.193] helo=[192.168.0.13]) by smtp.volant.org with asmtp (TLSv1:AES256-SHA:256) (Exim 4.22) id 19x96I-0006Oj-De for questions@freebsd.org; Wed, 10 Sep 2003 10:49:54 -0700 Date: Wed, 10 Sep 2003 10:49:51 -0700 From: Pat Lashley To: questions@freebsd.org Message-ID: <1150905408.1063216191@mccaffrey.phoenix.volant.org> X-Mailer: Mulberry/3.1.0b6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Scan-Signature: 4de86cbcd03a6dda1a120864d4b7ad3490d36406 X-Spam-Score: 0.6 (/) X-Spam-Score-Int: 6 X-Spam-Report: 0.6/5.0 This mail has matched the spam-filter tests listed below. See http://spamassassin.org/tag/ for details about the specific tests reported. In general, the higher the number of total points, the more likely that it actually is spam. (The 'required' number of points listed below is the arbitrary number above which the message is normally considered spam.) Content analysis details: (0.60 points total, 5 required) relays.osirusoft.com [RBL check: found 193.229.144.64.relays.osirusoft.com.] Subject: Determining which jail a process is running in without procfs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 19:51:09 -0000 I have a system running 5.1-RELEASE-p2 with several jails. Occasionally I want to determine which jail a given process belongs to. On -STABLE I could just cat /proc//status and look at the final entry. But with 5.x procfs id deprecated; so I'd like to find some other way. Any help would be appreciated. -Pat