From nobody@FreeBSD.org  Mon Feb 25 22:58:00 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C58A237B417
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 25 Feb 2002 22:57:59 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1Q6vxU78486;
	Mon, 25 Feb 2002 22:57:59 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202260657.g1Q6vxU78486@freefall.freebsd.org>
Date: Mon, 25 Feb 2002 22:57:59 -0800 (PST)
From: Jerry Murdock <jerry_murdock@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Linux emulation inside jail returns wrong hostname
X-Send-Pr-Version: www-1.0

>Number:         35336
>Category:       misc
>Synopsis:       Linux emulation inside jail returns wrong hostname
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 25 23:00:03 PST 2002
>Closed-Date:    Thu Feb 28 00:01:16 PST 2002
>Last-Modified:  Thu Feb 28 00:02:50 PST 2002
>Originator:     Jerry Murdock
>Release:        4.5 -Stable from 02/18
>Organization:
iTrak Technologies
>Environment:
FreeBSD obsd.itraktech.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Feb 18 21:39:35 EST 2002     fw@dcbsd.itraktech.com:/tmp/LINKED/obj/var/USR/src/sys/FIREWALL45  i386
>Description:
Using linux_base-7, gethostname calls from linux programs do not return the jail hostname, but instead return the hostname of the "physical" server.
>How-To-Repeat:
1: Create jail per man page
2: Install linux_bas-7 port
3: Grab net-tools-1.57-6.i386.rpm to get the Linux "hostname" binary.
4: Run the linux hostname

ftp://ftp.rpmfind.net/linux/redhat/7.1/en/os/i386/RedHat/RPMS/net-tools-1.57-6.i386.rpm


>Fix:
     
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: robert 
State-Changed-When: Thu Feb 28 00:01:16 PST 2002 
State-Changed-Why:  
A fix has been committed to -CURRENT. 
Thank you for reporting the bug! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35336 
>Unformatted:
