From owner-freebsd-questions@FreeBSD.ORG Sun Jun 18 20:55:20 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 A8EF516A484 for ; Sun, 18 Jun 2006 20:55:20 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8819D43D70 for ; Sun, 18 Jun 2006 20:55:16 +0000 (GMT) (envelope-from stapleton.41@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so590180uge for ; Sun, 18 Jun 2006 13:55:15 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oyDnhHqoAq51byO7lQnZ2XhXPHHJHC/bWv6f2HFXw87NPtLXJy1UI2mgitWNJyR5Wui/O38rrPTIvaFsB7Y3YK77AJhvRbALcuKxSp+ezr9oFHj0NphSwhI8lZW365v/8TP0sFSCKuIKJOzjRl0NHYI6GnWlBk7uqmurOxNKzJQ= Received: by 10.66.252.4 with SMTP id z4mr4827348ugh; Sun, 18 Jun 2006 13:55:15 -0700 (PDT) Received: by 10.67.100.9 with HTTP; Sun, 18 Jun 2006 13:55:15 -0700 (PDT) Message-ID: <80f4f2b20606181355x3155c33dp1e498dea663000c5@mail.gmail.com> Date: Sun, 18 Jun 2006 16:55:15 -0400 From: "Jim Stapleton" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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 20:55:20 -0000 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! ======================================== or ======================================== $ ./some_app Sorry, we only deal with Linux people, go away! $ pretend_os "generic-i386-linux" some_app Hello world! ======================================== Thanks, -Jim Stapleton