From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 08:07:11 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25F8916A4CE for ; Mon, 1 Mar 2004 08:07:11 -0800 (PST) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1979643D2F for ; Mon, 1 Mar 2004 08:07:09 -0800 (PST) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id 5CA39175D2; Mon, 1 Mar 2004 17:07:03 +0100 (CET) Date: Mon, 1 Mar 2004 17:07:03 +0100 From: Anton Berezin To: freebsd-emulation@freebsd.org Message-ID: <20040301160702.GA31836@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: [PATCH] any objections to the following patch? X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 16:07:11 -0000 This fixes the hostname determination from linux applications inside a jail. The patch is against RELENG_4, since this problem is already fixed in -CURRENT. Index: linux_misc.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_misc.c,v retrieving revision 1.85.2.10 diff -u -r1.85.2.10 linux_misc.c --- linux_misc.c 22 Oct 2003 13:51:46 -0000 1.85.2.10 +++ linux_misc.c 1 Mar 2004 16:05:30 -0000 @@ -686,6 +686,8 @@ { struct l_new_utsname utsname; char *osrelease, *osname; + int name[2]; + int error, plen, olen; #ifdef DEBUG if (ldebug(newuname)) @@ -697,7 +699,14 @@ bzero(&utsname, sizeof(utsname)); strncpy(utsname.sysname, osname, LINUX_MAX_UTSNAME-1); - strncpy(utsname.nodename, hostname, LINUX_MAX_UTSNAME-1); + + name[0] = CTL_KERN; + name[1] = KERN_HOSTNAME; + olen = LINUX_MAX_UTSNAME-1; + error = kernel_sysctl(p, name, 2, utsname.nodename, &olen, NULL, 0, &plen); + if (error) + strncpy(utsname.nodename, hostname, LINUX_MAX_UTSNAME-1); + strncpy(utsname.release, osrelease, LINUX_MAX_UTSNAME-1); strncpy(utsname.version, version, LINUX_MAX_UTSNAME-1); strncpy(utsname.machine, machine, LINUX_MAX_UTSNAME-1); Cheers, \Anton. -- Civilization is a fractal patchwork of old and new and dangerously new. -- Vernor Vinge From owner-freebsd-emulation@FreeBSD.ORG Mon Mar 1 11:01:36 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE7D316A4D1 for ; Mon, 1 Mar 2004 11:01:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B91E043D31 for ; Mon, 1 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id i21J1abv053966 for ; Mon, 1 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i21J1axx053960 for emulation@freebsd.org; Mon, 1 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 1 Mar 2004 11:01:36 -0800 (PST) Message-Id: <200403011901.i21J1axx053960@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: emulation@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 19:01:36 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/06/28] kern/53874 emulation /usr/ports/emulators/linux_base isn't wor 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/09/21] kern/21463 emulation Linux compatability mode should not allow o [2000/11/13] kern/22826 emulation Memory limits have no effect in linux com o [2000/12/14] misc/23561 emulation Linux compatibility mode does not support o [2001/03/28] kern/26171 emulation not work Linux-emulator, but hi is work i 4 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/19] misc/19391 emulation Evilness with Linux Terminus, causes X to o [2002/08/11] kern/41543 emulation Easier wine/w23 support p [2002/09/04] kern/42404 emulation TIOCSCTTY not implemented in linuxulator o [2002/11/26] kern/45785 emulation Linux WineX seems to require a few new li 4 problems total. From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 3 21:21:41 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3316F16A4CE for ; Wed, 3 Mar 2004 21:21:41 -0800 (PST) Received: from swjscmail2.java.sun.com (swjscmail2.Sun.COM [192.18.99.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20F1243D41 for ; Wed, 3 Mar 2004 21:21:41 -0800 (PST) (envelope-from LISTSERV@JAVA.SUN.COM) Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107]) by swjscmail2.java.sun.com (Postfix) with ESMTP id 27C4721B42 for ; Wed, 3 Mar 2004 22:16:03 -0700 (MST) Date: Wed, 3 Mar 2004 22:12:01 -0700 From: "L-Soft list server at Sun Microsystems Inc. (1.8e)" To: freebsd-emulation@FREEBSD.ORG Message-ID: Subject: Message ("Your message dated Thu, 4 Mar 2004 08:20:42 +0300...") X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 05:21:41 -0000 Your message dated Thu, 4 Mar 2004 08:20:42 +0300 with subject "illegal..." has been submitted to the moderator of the RMI-USERS list. From owner-freebsd-emulation@FreeBSD.ORG Thu Mar 4 02:59:44 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28EB016A4CE for ; Thu, 4 Mar 2004 02:59:44 -0800 (PST) Received: from viefep13-int.chello.at (viefep13-int.chello.at [213.46.255.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3171743D46 for ; Thu, 4 Mar 2004 02:59:43 -0800 (PST) (envelope-from scotia@two-fifths.com) Received: from freebsd-01.two-fifths.com ([213.47.169.130]) by viefep13-int.chello.atESMTP <20040304105941.OCZX8396.viefep13-int.chello.at@freebsd-01.two-fifths.com> for ; Thu, 4 Mar 2004 11:59:41 +0100 Received: from freebsd-01.two-fifths.com (localhost [127.0.0.1]) i24C00dG034509 for ; Thu, 4 Mar 2004 12:00:00 GMT (envelope-from scotia@freebsd-01.two-fifths.com) Received: (from scotia@localhost)i24BxxNR034508 for freebsd-emulation@freebsd.org; Thu, 4 Mar 2004 12:00:00 GMT (envelope-from scotia) Date: Thu, 4 Mar 2004 11:59:59 +0000 From: Scott To: freebsd-emulation@freebsd.org Message-ID: <20040304115959.GA34478@freebsd-01.two-fifths.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: [freebsd-questions@two-fifths.com: sophos anti virus and mailmonitor on freebsd] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2004 10:59:44 -0000 Hi all, I'm trying to get Sophos Mailmonitor running on my 5.2 box, but to no avail. Below is a sequence of events... Installed Sophos Anti-virus for FreeBSD 3+. Sweep (the executable) works fine. File '/usr/local/bin/sweep' is of brand 'SVR4' (0). File '/usr/local/lib/libsavi.so.3.2.07.054' is of brand 'SVR4' (0). This is a library both SAV and MailMonitor use. Installed MailMonitor for Linux (there is no FreeBSD version). The install works a treat. The executable is called mmsmtpd, there is also a (library?) file called mmsmtp.out. File '/usr/local/sophos/mmsmtp/bin/mmsmtp.out' is of brand 'SVR4' (0). Installed linux_base-6.1_5 via packages Loaded linux.lo kldstat says: Id Refs Address Size Name 1 9 0xc0400000 5d7f1c kernel 2 1 0xc09d8000 51a18 acpi.ko 3 1 0xc24bb000 2000 dragon_saver.ko 4 1 0xc24e7000 19000 linux.ko >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start Got the following error: /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading shared libraries: libsavi.so.2: cannot open shared object file: No such file or directory Created symlink /lib/ (was this correct?) ln -s /usr/local/lib/libsavi.so.3.2.07.054 /lib/libsavi.so.2 >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start Got the following error: /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading shared libraries: libsavi.so.2: ELF file ABI version invalid. Then I started trying everything... brandelf -t Linux /usr/local/lib/libsavi.so.3.2.07.054 >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start Got the following error: /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading shared libraries: libsavi.so.2: ELF file OS ABI invalid. So now I'm stuck. I'd appreciate any help anyone might have! I've done a search on freebsd-emulation but no luck, and have also posted this message on -questions. Thanks in advance Scott From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 5 07:35:18 2004 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A250B16A4CE for ; Fri, 5 Mar 2004 07:35:18 -0800 (PST) Received: from blueshiftdesign.com (user-37ka4gj.dialup.mindspring.com [207.69.18.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84CF343D2D for ; Fri, 5 Mar 2004 07:35:17 -0800 (PST) (envelope-from ddollar@blueshiftdesign.com) Received: by blueshiftdesign.com (Postfix, from userid 2002) id 9E68D2155; Fri, 5 Mar 2004 10:28:56 -0500 (EST) Received: from neon.periodic.local (neon.periodic.local [10.1.2.254]) by blueshiftdesign.com (Postfix) with ESMTP id 2935B2086; Fri, 5 Mar 2004 01:19:47 -0500 (EST) From: David Dollar To: freebsd-emulation@freebsd.org Date: Fri, 5 Mar 2004 01:19:46 -0500 User-Agent: KMail/1.6 References: <20040304115959.GA34478@freebsd-01.two-fifths.com> In-Reply-To: <20040304115959.GA34478@freebsd-01.two-fifths.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403050119.46305.ddollar@blueshiftdesign.com> cc: Scott Subject: Re: [freebsd-questions@two-fifths.com: sophos anti virus and mailmonitor on freebsd] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 15:35:18 -0000 On Thursday 04 March 2004 06:59 am, Scott wrote: > Hi all, > > I'm trying to get Sophos Mailmonitor running on my 5.2 box, but to no > avail. > > Below is a sequence of events... > > Installed Sophos Anti-virus for FreeBSD 3+. Sweep (the executable) works > fine. File '/usr/local/bin/sweep' is of brand 'SVR4' (0). > File '/usr/local/lib/libsavi.so.3.2.07.054' is of brand 'SVR4' (0). This > is a library both SAV and MailMonitor use. > You need to install the Linux version of Sophos as well if using it with a linux binary. > Installed MailMonitor for Linux (there is no FreeBSD version). The install > works a treat. The executable is called mmsmtpd, there is also a (library?) > file called mmsmtp.out. File '/usr/local/sophos/mmsmtp/bin/mmsmtp.out' is > of brand 'SVR4' (0). > > Installed linux_base-6.1_5 via packages > Loaded linux.lo > kldstat says: > Id Refs Address Size Name > 1 9 0xc0400000 5d7f1c kernel > 2 1 0xc09d8000 51a18 acpi.ko > 3 1 0xc24bb000 2000 dragon_saver.ko > 4 1 0xc24e7000 19000 linux.ko > > >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start > > Got the following error: > /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading > shared libraries: libsavi.so.2: cannot open shared object file: No such > file or directory > > Created symlink /lib/ (was this correct?) > ln -s /usr/local/lib/libsavi.so.3.2.07.054 /lib/libsavi.so.2 > > >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start > > Got the following error: > /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading > shared libraries: libsavi.so.2: ELF file ABI version invalid. > > Then I started trying everything... > > brandelf -t Linux /usr/local/lib/libsavi.so.3.2.07.054 > > >From /usr/local/sophos/mmsmtp/bin/ ran ./mmstpd -start > > Got the following error: > /usr/local/sophos/mmsmtp-1.2.2/Linux-x86/bin/mmsmtp.out: error in loading > shared libraries: libsavi.so.2: ELF file OS ABI invalid. > > So now I'm stuck. I'd appreciate any help anyone might have! > I've done a search on freebsd-emulation but no luck, and have also posted > this message on -questions. > > Thanks in advance > Scott > > _______________________________________________ > freebsd-emulation@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > To unsubscribe, send any mail to > "freebsd-emulation-unsubscribe@freebsd.org"