Date: Fri, 20 Dec 2002 15:20:02 +0100 From: Pawel Jakub Dawidek <nick@garage.freebsd.pl> To: freebsd-current@freebsd.org Subject: Panic in jail [patch]. Message-ID: <20021220142002.GB11475@garage.freebsd.pl>
next in thread | raw e-mail | index | archive | help
--neYutvxvOLaeuPCA Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. Initiated mutex for prison isn't destroyed on error. Kernel will on every error. Here You got patch for this: --- kern_jail.c.orig Fri Dec 20 15:11:10 2002 +++ kern_jail.c Fri Dec 20 15:14:03 2002 @@ -103,6 +103,7 @@ PROC_UNLOCK(p); crfree(newcred); bail: + mtx_destroy(&pr->pr_mtx); FREE(pr, M_PRISON); return (error); } --- BTW. Maybe is time to implement jail with more features? Multiple ips, protecting statfs-like calls or even multi level jail? As multi level jail I understand jail created in jail, etc. --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --neYutvxvOLaeuPCA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPgMnEj/PhmMH/Mf1AQFO7QQApWOXO5muMIvw3XSKyMWgq+dMQTGY97IU iE94DPzT8PhDW+bQnzH2rz5fGthuiCplEoMd+hxtSb/nJ4XepUQ6Az88qEZGqwZn U564rpsRFlbNB+jjb8gVGw9cUtEs8cfsSCPpqYs6+Bn6mVNYys7B6Gd/SddhOZc5 kyEhvVpcITo= =V4YR -----END PGP SIGNATURE----- --neYutvxvOLaeuPCA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021220142002.GB11475>