From owner-freebsd-questions@FreeBSD.ORG Mon Jun 19 09:55:35 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 C816516A47C for ; Mon, 19 Jun 2006 09:55:35 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0179E43D45 for ; Mon, 19 Jun 2006 09:55:34 +0000 (GMT) (envelope-from stapleton.41@gmail.com) Received: by hu-out-0102.google.com with SMTP id 27so519848hub for ; Mon, 19 Jun 2006 02:55:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=I5BIQDhBaI6jiPpiFlAOcgiVUkNDqtQ1GyaqguWrDfH1yEdAOD+Ii/CZE3RprDVCXhdTnsvnpEFmdlbjW6AzrU/SYHsR5PKdoKXPk/W1QCq/tNVnRFHFcNKVeGTbzzVrpav6cXg4sbEcLi4MMWwV18nIRctvDeTvGJYbCQHd4cw= Received: by 10.67.89.6 with SMTP id r6mr5363726ugl; Mon, 19 Jun 2006 02:55:33 -0700 (PDT) Received: by 10.67.100.9 with HTTP; Mon, 19 Jun 2006 02:55:32 -0700 (PDT) Message-ID: <80f4f2b20606190255g6e742279r18fed593af119106@mail.gmail.com> Date: Mon, 19 Jun 2006 05:55:32 -0400 From: "Jim Stapleton" To: freebsd-questions@freebsd.org In-Reply-To: <449663A8.5070203@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20606181355x3155c33dp1e498dea663000c5@mail.gmail.com> <4495C1DF.9040506@dial.pipex.com> <80f4f2b20606181428o270e0dedl885bf38540723b15@mail.gmail.com> <449663A8.5070203@dial.pipex.com> 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: Mon, 19 Jun 2006 09:55:35 -0000 OK, that was easier than expected. These blobs appeared around everything "linux", but don't look horribly useful. I'll check later to see if I can find anything else. is there anything I should be looking for aside from linux? $ wc -l kdumped 11413 kdumped 7851 rm RET fcntl 0 7851 rm CALL fstatfs(0x4,0xbfbfe670) 7851 rm RET fstatfs 0 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 512/0x200 7851 rm CALL lstat(0x804f2a8,0x804f248) 7851 rm NAMI "perl" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804f3a8,0x804f348) 7851 rm NAMI "cxupgrade" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804f4a8,0x804f448) 7851 rm NAMI "tcl" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804f5a8,0x804f548) 7851 rm NAMI "nsplugin-linux.so" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804f6a8,0x804f648) 7851 rm NAMI "nsplugin-linux64.so" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804f7a8,0x804f748) 7851 rm NAMI "xml" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804fea8,0x804fe48) 7851 rm NAMI "libxml2.so.2.6.19" 7851 rm RET lstat 0 7851 rm CALL lstat(0x804ffa8,0x804ff48) 7851 rm NAMI "libxml2.so.2" 7851 rm RET lstat 0 7851 rm CALL lstat(0x80520a8,0x8052048) 7851 rm NAMI "libxml2.so" 7851 rm RET lstat 0 7851 rm CALL lstat(0x80521a8,0x8052148) 7851 rm NAMI "libxslt.so.1.1.14" 7851 rm RET lstat 0 7851 rm CALL lstat(0x80522a8,0x8052248) 7851 rm NAMI "libxslt.so.1" 7851 rm RET lstat 0 7851 rm CALL lstat(0x80523a8,0x8052348) 7851 rm NAMI "libxslt.so" 7851 rm RET lstat 0 7851 rm CALL lstat(0x80524a8,0x8052448) 7851 rm CALL unlink(0x80530a8) 7851 rm NAMI "libimg1.2.so" 7851 rm RET unlink 0 7851 rm CALL unlink(0x80531a8) 7851 rm NAMI "libTktable2.8.so" 7851 rm RET unlink 0 7851 rm CALL open(0x2813fcd0,0,0) 7851 rm NAMI ".." 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe8c0) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL rmdir(0x804f4a8) 7851 rm NAMI "tcl" 7851 rm RET rmdir 0 7851 rm CALL unlink(0x804f5a8) 7851 rm NAMI "nsplugin-linux.so" 7851 rm RET unlink 0 7851 rm CALL unlink(0x804f6a8) 7851 rm NAMI "nsplugin-linux64.so" 7851 rm RET unlink 0 7851 rm CALL stat(0x804f7a8,0xbfbfe850) 7851 rm NAMI "xml" 7851 rm RET stat 0 7851 rm CALL open(0x804f7a8,0x4,0x1) 7851 rm NAMI "xml" 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fcntl(0x4,0x2,0x1) 7851 rm RET fcntl 0 7851 rm CALL fstatfs(0x4,0xbfbfe670) 7851 rm RET fstatfs 0 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 512/0x200 7851 rm CALL lstat(0x8052da8,0x8052d48) 7851 rm NAMI "perl" 7851 rm RET lstat 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET rmdir 0 7851 rm CALL unlink(0x804f3a8) 7851 rm NAMI "setup.glade" 7851 rm RET unlink 0 7851 rm CALL stat(0x804f4a8,0xbfbfe850) 7851 rm NAMI "bin" 7851 rm RET stat 0 7851 rm CALL open(0x804f4a8,0x4,0x1) 7851 rm NAMI "bin" 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fcntl(0x4,0x2,0x1) 7851 rm RET fcntl 0 7851 rm CALL fstatfs(0x4,0xbfbfe670) 7851 rm RET fstatfs 0 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 512/0x200 7851 rm CALL lstat(0x804f2a8,0x804f248) 7851 rm NAMI "Linux" 7851 rm RET lstat 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 0 7851 rm CALL lseek(0x4,0,0,0,0) 7851 rm RET lseek 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL stat(0x804f2a8,0xbfbfe850) 7851 rm NAMI "Linux" 7851 rm RET stat 0 7851 rm CALL open(0x804f2a8,0x4,0x1) 7851 rm NAMI "Linux" 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fcntl(0x4,0x2,0x1) 7851 rm RET fcntl 0 7851 rm CALL fstatfs(0x4,0xbfbfe670) 7851 rm RET fstatfs 0 7851 rm CALL fstat(0x4,0xbfbfe850) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 512/0x200 7851 rm CALL lstat(0x804f3a8,0x804f348) 7851 rm NAMI "x86" 7851 rm RET lstat 0 7851 rm CALL getdirentries(0x4,0x8051000,0x1000,0x8050014) 7851 rm RET getdirentries 0 7851 rm CALL lseek(0x4,0,0,0,0) 7851 rm RET lseek 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL stat(0x804f3a8,0xbfbfe850) 7851 rm RET unlink 0 7851 rm CALL open(0x2813fcd0,0,0) 7851 rm NAMI ".." 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe8c0) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL rmdir(0x804f3a8) 7851 rm NAMI "x86" 7851 rm RET rmdir 0 7851 rm CALL open(0x2813fcd0,0,0) 7851 rm NAMI ".." 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe8c0) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL rmdir(0x804f2a8) 7851 rm NAMI "Linux" 7851 rm RET rmdir 0 7851 rm CALL open(0x2813fcd0,0,0) 7851 rm NAMI ".." 7851 rm RET open 4 7851 rm CALL fstat(0x4,0xbfbfe8c0) 7851 rm RET fstat 0 7851 rm CALL fchdir(0x4) 7851 rm RET fchdir 0 7851 rm CALL close(0x4) 7851 rm RET close 0 7851 rm CALL rmdir(0x804f4a8) 7851 rm NAMI "bin" 7851 rm RET rmdir 0 7851 rm CALL unlink(0x804f5a8) 7851 rm NAMI "GPLV2" 7851 rm RET unlink 0 7851 rm CALL unlink(0x804f6a8) 7851 rm NAMI "preinstall.sh" 7851 rm RET unlink 0 7851 rm CALL unlink(0x804f7a8) 7851 rm NAMI "preuninstall" 7851 rm RET unlink 0 7851 rm CALL unlink(0x804f8a8) On 6/19/06, Alex Zbyslaw wrote: > Jim Stapleton wrote: > > > I don't know how to find out, except that the app is the Crossover > > Office demo installer. I'd like to try to find a way to trick it into > > running in the linux compatability mode of FreeBSD if I can. > > So is there source code? Or is it some dumb binary rpm? > > You could try running it under ktrace, then look at the output of kdump > (assuming that works for linux apps), but the output will be *long* so > you will have to edit out a judicious part which leads up to the "Linux" > string being printed, and it might not help. But, it might, for > example, look to see if some file exists (/etc/redhat-release or something). > > Darrin Chandler wrote: > > >In addition, consider respecting the wishes of > >the developer(s) and not using it. If they have any sort of "free" > >license then you can always release a portable fork. > > > Respect a license? Yes, probably. Respect the wishes? Fat chance. That way lies doom... > > --Alex > > > >