Date: Thu, 23 Jan 2003 13:00:09 -0800 (PST) From: Kevin Bockman <kbock@techemail.com> To: freebsd-stable@freebsd.org Subject: Ident in a jailed environment Message-ID: <20030123210009.2CC3C3D86@sitemail.everyone.net>
next in thread | raw e-mail | index | archive | help
Hey. Ident under -stable doesn't work correctly. This has been discussed before and is fixed in 5.0 but I'm not sure if I want to use 5.0 on a production server. I applied a patch that was made by Robert Watson that was submitted in 2001 for 4.3 (I believe). It applies but still doesn't work. I have pasted the patch below. Does anyone have any other suggestions a hack to get ident to work inside a 4.7 jail? Thanks. Kevin Bockman Index: tcp_subr.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/tcp_subr.c,v retrieving revision 1.73.2.22 diff -u -r1.73.2.22 tcp_subr.c --- tcp_subr.c 22 Aug 2001 00:59:12 -0000 1.73.2.22 +++ tcp_subr.c 7 Dec 2001 16:56:23 -0000 @@ -910,7 +910,7 @@ struct inpcb *inp; int error, s; - error = suser(req->p); + error = suser_xxx(NULL, req->p, PRISON_ROOT); if (error) return (error); error = SYSCTL_IN(req, addrs, sizeof(addrs)); _____________________________________________________________ Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com _____________________________________________________________ Select your own custom email address for FREE! Get you@yourchoice.com w/No Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030123210009.2CC3C3D86>