Exclusive binary files

Peter Jeremy peterjeremy at optushome.com.au
Sat Sep 1 15:26:15 PDT 2007


On 2007-Sep-01 14:27:42 -0300, Klaus Schneider <klausps at gmail.com> wrote:
>Well, anybody know a way to make the FreeBSD run just binaries that I have
>compiled?

The simplest way would be to change the ELF OSABI that the kernel
loader recognises as FreeBSD (patch ELFOSABI_FREEBSD in
sys/sys/elf_common.h and rebuild).  You would need to use brandelf to
patch executables built on other FreeBSD systems.

There's a set of patches implementing mac_chkexec floating around
see (eg) http://lists.virus.org/freebsd-security-0503/msg00042.html
This might do what you want.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070901/ae040517/attachment.pgp


More information about the freebsd-hackers mailing list