From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 1 22:26:15 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4F8916A417 for ; Sat, 1 Sep 2007 22:26:15 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 3129613C45D for ; Sat, 1 Sep 2007 22:26:14 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l81M8qHZ022138; Sun, 2 Sep 2007 08:08:52 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l81M8pwb022137; Sun, 2 Sep 2007 08:08:51 +1000 (EST) (envelope-from peter) Date: Sun, 2 Sep 2007 08:08:51 +1000 From: Peter Jeremy To: Klaus Schneider Message-ID: <20070901220851.GA1181@turion.vk2pj.dyndns.org> References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PuGuTyElPB9bOcsM" Content-Disposition: inline In-Reply-To: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: hackers@freebsd.org Subject: Re: Exclusive binary files 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: Sat, 01 Sep 2007 22:26:15 -0000 --PuGuTyElPB9bOcsM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Sep-01 14:27:42 -0300, Klaus Schneider 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. --=20 Peter Jeremy --PuGuTyElPB9bOcsM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG2eLz/opHv/APuIcRAjqhAJ9jzMHkmLQy806I107vYs8ynOaIpgCfb34O KZYr3proOT/ahea9hZK4JUc= =5VK/ -----END PGP SIGNATURE----- --PuGuTyElPB9bOcsM--