Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2002 10:02:05 +0200
From:      Pawel Jakub Dawidek <nick@garage.freebsd.pl>
To:        freebsd-hackers@freebsd.org
Subject:   Re: How to port old 3.x kld to 4.x?
Message-ID:  <20020808080205.GO29179@garage.freebsd.pl>
In-Reply-To: <8664.1028722224@www19.gmx.net>
References:  <8664.1028722224@www19.gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--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.<uid>|<login>
/etc/userpwd/pwd.db.<uid>|<login>
/etc/userpwd/group.<uid>|<login>

--=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020808080205.GO29179>