From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 13 09:30:07 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ED8D37B401 for ; Sun, 13 Apr 2003 09:30:07 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C033943F85 for ; Sun, 13 Apr 2003 09:30:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3DGU6Up038067 for ; Sun, 13 Apr 2003 09:30:06 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3DGU6RW038066; Sun, 13 Apr 2003 09:30:06 -0700 (PDT) Resent-Date: Sun, 13 Apr 2003 09:30:06 -0700 (PDT) Resent-Message-Id: <200304131630.h3DGU6RW038066@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ceri Davies Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38E9037B401 for ; Sun, 13 Apr 2003 09:24:59 -0700 (PDT) Received: from shrike.submonkey.net (pc1-cdif2-5-cust38.cdif.cable.ntl.com [81.101.150.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 426BB43F85 for ; Sun, 13 Apr 2003 09:24:58 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.12) id 194kHp-0001KD-00 for FreeBSD-gnats-submit@freebsd.org; Sun, 13 Apr 2003 17:24:57 +0100 Message-Id: Date: Sun, 13 Apr 2003 17:24:57 +0100 From: Ceri Davies Sender: Ceri Davies To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/50904: jls(8) shows the host IP, not the jail IP X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ceri Davies List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2003 16:30:07 -0000 >Number: 50904 >Category: bin >Synopsis: jls(8) shows the host IP, not the jail IP >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 13 09:30:06 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Ceri Davies >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD rhadamanth.private.submonkey.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Apr 12 22:27:22 BST 2003 root@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386 >Description: The recently added jls command displays the IP address of the host, and not that of the jail. >How-To-Repeat: On the host machine: ifconfig dc0 inet 192.168.10.1 netmask 255.255.255.0 ifconfig dc0 inet 192.168.10.129 netmask 0xffffffff add ifconfig dc0 inet 192.168.10.130 netmask 0xffffffff add jail /data/jail/192.168.10.129 strangeways 192.168.10.129 /bin/sh jail /data/jail/192.168.10.130 reading 192.168.10.130 /bin/sh And then, in another window on the host machine: jls JID IP Address Hostname Path 8 192.168.10.1 reading /data/jail/192.168.10.130 7 192.168.10.1 strangeways /data/jail/192.168.10.129 192.168.10.1 is not the jail's IP address. >Fix: May just be a documentation bug (it's not clear from the manpage whether this should list the host IP or the jail IP), although a scan of sys/jail.h seems to indicate that it should be working as I expect. >Release-Note: >Audit-Trail: >Unformatted: