From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 25 23:41:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0705416A469 for ; Fri, 25 Jan 2008 23:41:42 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: from hs-out-2122.google.com (hs-out-0708.google.com [64.233.178.250]) by mx1.freebsd.org (Postfix) with ESMTP id 9CC6113C45D for ; Fri, 25 Jan 2008 23:41:41 +0000 (UTC) (envelope-from jrytoung@gmail.com) Received: by hs-out-2122.google.com with SMTP id h53so249151hsh.11 for ; Fri, 25 Jan 2008 15:41:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=tUiS4yrLYDJmI/4pomJnhFvzHPebn0b66GjzCM8FuT4=; b=nixdRNm5Tgl/+GVBqskGgGYO4R9SYwX7qu0UFxkrp76q5ArM+/Tg6WB3NE6eo9gSepW63XMHvT8HyoRh/K9R/4CDCrs0aOVOHJDTtCdtf8BmJB6rrYmnX+A7NRVmlaPnGyuJQ8ZmO9vD982tKpLy41XmLQpqU1qOtqNTnp2p0U4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=yIMWtQ1Xg09yWY5wgZ9XmXiRY4Y6FzOz2D2+GlrxxKqsgjUi2ewVpmbprNQDB7KbTuCWhbMf3w+m3Nu9ROGFkF7Is0iRkYkopuU6jtQHetahKxRv7d3qjIrLxMee59Bywh0O0Ykmog7ZRvfU0h5XTwOj39yHtBHWw3j81tSybnQ= Received: by 10.142.232.20 with SMTP id e20mr1674689wfh.187.1201304500205; Fri, 25 Jan 2008 15:41:40 -0800 (PST) Received: by 10.142.51.19 with HTTP; Fri, 25 Jan 2008 15:41:40 -0800 (PST) Message-ID: <86068e730801251541l5962acb4y817a587ee9d145ec@mail.gmail.com> Date: Fri, 25 Jan 2008 15:41:40 -0800 From: "Jerry Toung" To: d@delphij.net In-Reply-To: <479A710A.7040705@delphij.net> MIME-Version: 1.0 References: <86068e730801251451n650b7abcyf3d008fddec2c33f@mail.gmail.com> <479A710A.7040705@delphij.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: a new syscalls table X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 23:41:42 -0000 Good point. I'll try it. On Jan 25, 2008 3:30 PM, Xin LI wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Jerry Toung wrote: > > Hello list, > > I am trying to create an environment where you can't run my binaries on > your > > box and I can't run > > your binaries on my system (x86 platform). > > For that, I have modified the system calls table (i.e everything is > offset > > by 5). > > All the files that need to be re-generated, have been. > > I ran make buildworld then make kernel. I don't run make installworld > > because it will not complete (modified libc.so.6). So, just before I > reboot, > > I cp my > > newly built libc.so.6 from /usr/obj/../lib to /lib/. then power off the > box. > > When it comes back, it panics in kern/kern_exit.c with > > "Going nowhere without my init!" > > > > How can I make this work? Is my initial objective even possible? > > I think the correct approach would be to have a cpu that no else in the > > world has, > > any in between solution.? > > Maybe you can try make installworld DESTDIR=/another_rootdir and boot > from that environment? > > Cheers, > - -- > Xin LI http://www.delphij.net/ > FreeBSD - The Power to Serve! > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.4 (FreeBSD) > > iD8DBQFHmnEKi+vbBBjt66ARAq8uAJ9d3yehidPQJI9YPgCyOV8XNHZ2DwCbBKGH > AE7ydKQFaj3N/2j2h5XweBU= > =SUPR > -----END PGP SIGNATURE----- >