bin/50904: jls(8) shows the host IP, not the jail IP

Ceri Davies ceri at FreeBSD.org
Sun Apr 13 09:30:07 PDT 2003


>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 <ceri at 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 at 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:


More information about the freebsd-bugs mailing list