From setantae@submonkey.net  Sun Apr 13 09:24:59 2003
Return-Path: <setantae@submonkey.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 38E9037B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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: <E194kHp-0001KD-00@shrike.submonkey.net>
Date: Sun, 13 Apr 2003 17:24:57 +0100
From: Ceri Davies <ceri@FreeBSD.org>
Sender: Ceri Davies <setantae@submonkey.net>
Reply-To: Ceri Davies <ceri@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: jls(8) shows the host IP, not the jail IP
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50904
>Category:       bin
>Synopsis:       jls(8) shows the host IP, not the jail IP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mike
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 09:30:06 PDT 2003
>Closed-Date:    Tue Apr 22 06:26:41 PDT 2003
>Last-Modified:  Tue Apr 22 06:26:41 PDT 2003
>Originator:     Ceri Davies <ceri@FreeBSD.org>
>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:
Responsible-Changed-From-To: freebsd-bugs->mike 
Responsible-Changed-By: ru 
Responsible-Changed-When: Tue Apr 22 04:32:43 PDT 2003 
Responsible-Changed-Why:  
Over to jls(8) author. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50904 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Tue Apr 22 06:25:31 PDT 2003 
State-Changed-Why:  
jls(8) was truncating the IP address to 12 characters.  This has been 
fixed in rev 1.3 of jls.c. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50904 
>Unformatted:
