smoke and mirrors - any way to trick an app into thinking I'm running linux?

Jim Stapleton stapleton.41 at gmail.com
Sun Jun 18 20:55:20 UTC 2006


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


More information about the freebsd-questions mailing list