Re: a new syscalls table



-----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 <delphij@xxxxxxxxxxx> 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-----
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: a new syscalls table
    ... I am trying to create an environment where you can't run my binaries on ... Maybe you can try make installworld DESTDIR=/another_rootdir and boot ... FreeBSD - The Power to Serve! ...
    (freebsd-hackers)
  • Re: Unfortunate dynamic linking for everything
    ... then for shells the FreeBSD VM shares maximally without using ... only thing that has changed recently is a few binaries in /bin and /sbin. ... "once during boot" case is interesting in the aggregate, ... Shells, which are run for extended periods of time, and which are ...
    (freebsd-current)
  • Re: ELF dynamic loader name [was: sbrk(2) broken]
    ... While this doesn't count as an explicit vote against the rename, ... gdb is built to debug binaries for a particular architecture. ... this is the first time that FreeBSD ... Now we are concidering to deploy amd64, ...
    (freebsd-current)
  • Re: Evolution Message Summary View
    ... > I finally tracked the timezone offset shifting problem down to ... > the TZ environment variable back the way it was afterward. ... > FreeBSD, the TZ environment variable usually doesn't exist because ... >> Ah, that's the catalyst. ...
    (freebsd-questions)
  • Re: differences between /bin, /usr/bin and /usr/local/bin
    ... all *existing* versions FreeBSD ships only static binaries in /bin. ... the BSD traditionalists in that thread are ... Sun has announced that there will be no static system libraries at all ...
    (comp.unix.programmer)