From owner-freebsd-questions@FreeBSD.ORG Sun Jun 18 21:13:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 499DF16A474 for ; Sun, 18 Jun 2006 21:13:07 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out3.blueyonder.co.uk (smtp-out3.blueyonder.co.uk [195.188.213.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D83AE43D45 for ; Sun, 18 Jun 2006 21:13:06 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.140] (helo=anti-virus02-07) by smtp-out3.blueyonder.co.uk with smtp (Exim 4.52) id 1Fs4Zt-0005gb-3f; Sun, 18 Jun 2006 22:13:05 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1Fs4Zs-0007aX-Ey; Sun, 18 Jun 2006 22:13:04 +0100 Message-ID: <4495C1DF.9040506@dial.pipex.com> Date: Sun, 18 Jun 2006 22:13:03 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: Jim Stapleton References: <80f4f2b20606181355x3155c33dp1e498dea663000c5@mail.gmail.com> In-Reply-To: <80f4f2b20606181355x3155c33dp1e498dea663000c5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: smoke and mirrors - any way to trick an app into thinking I'm running linux? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 21:13:07 -0000 Jim Stapleton wrote: > Basically, I have an application that doesn't want to run in FreeBSD, > though it may still run given the compatability layer. I was wondering > if there was some way to make the OS respond when it ran the > application, that it was linux and not BSD. > i.e. > > > ======================================== > $ ./some_app > Sorry, we only deal with Linux people, go away! > > $ sysctl.pretend.register /home/me/some_app "generic-i386-linux" > $ ./some_app > Hello world! > ======================================== That really rather depends on *how* the app is asking. If you can tell us that, we can almost certainly tell you how to fool it. Of course, if you have the source code, it should be easy as you can just comment out the test and recompile. Mind you, if the app is as short-sighted and bloody-minded as its developers, maybe you should just look for an alternative. --Alex