From owner-freebsd-hackers Thu Aug 8 1: 0:40 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8BA937B401 for ; Thu, 8 Aug 2002 01:00:36 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D8A943E9E for ; Thu, 8 Aug 2002 01:00:34 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 644CC3ABD40; Thu, 8 Aug 2002 10:02:05 +0200 (CEST) Date: Thu, 8 Aug 2002 10:02:05 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Subject: Re: How to port old 3.x kld to 4.x? Message-ID: <20020808080205.GO29179@garage.freebsd.pl> References: <8664.1028722224@www19.gmx.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="tjOMJDssiV0CZSJH" Content-Disposition: inline In-Reply-To: <8664.1028722224@www19.gmx.net> X-PGP-Key-URL: http://garage.freebsd.pl/jules.pgp X-OS: FreeBSD 4.6-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --tjOMJDssiV0CZSJH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 07, 2002 at 02:10:24PM +0200, Ingram wrote: +> It compiles and loads with kldload but if i execute the redirected +> file on my box, the whole os just hangs and spits something like +> "kernel page fault". +> Here You got solution how to catch execve(): http://garage.freebsd.pl/rexec.tgz +> I expect the problems lying within the userspace allocation, but +> i am not experienced enough in coding kld to port this code +> so that it works under FreeBSd 4.6 (or future releases). +> And here You got an example module, which shows how to allocate memory in userspace (it converting open() of file "/tmp/foo" to file "/tmp/foobar"= ): http://garage.freebsd.pl/usmalloc.tgz And maybe this one too: http://garage.freebsd.pl/userpwd.tgz This module converts open() on files: /etc/passwd /etc/pwd.db /etc/group for users to: /etc/userpwd/passwd.| /etc/userpwd/pwd.db.| /etc/userpwd/group.| --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --tjOMJDssiV0CZSJH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPVIlfT/PhmMH/Mf1AQHI/AP8CVuQB5Qjig29p6XPYeK/D3RAL0zC9Fdt rygGxZHp9OWqafPh+kcibcK4rUQ3zTiFOryeD99O6oVu1TRSECnStHQCxpjMejwj 6yoe3pYdvzt2M7N8DRVL4Q6VdQlATXrf8n+wHHYmQ5kmkbkSLRf0ACHLIjfKSdCE WUFMBb6RDVA= =Gjul -----END PGP SIGNATURE----- --tjOMJDssiV0CZSJH-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message