From owner-freebsd-stable Thu Jan 23 13: 0:30 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 610F537B401 for ; Thu, 23 Jan 2003 13:00:29 -0800 (PST) Received: from omta02.mta.everyone.net (sitemail3.everyone.net [216.200.145.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF80343F13 for ; Thu, 23 Jan 2003 13:00:28 -0800 (PST) (envelope-from kbock@techemail.com) Received: from sitemail.everyone.net (dsnat [216.200.145.62]) by omta02.mta.everyone.net (Postfix) with ESMTP id 12EE01C3BD1 for ; Thu, 23 Jan 2003 13:00:13 -0800 (PST) Received: by sitemail.everyone.net (Postfix, from userid 99) id 2CC3C3D86; Thu, 23 Jan 2003 13:00:09 -0800 (PST) Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Date: Thu, 23 Jan 2003 13:00:09 -0800 (PST) From: Kevin Bockman To: freebsd-stable@freebsd.org Subject: Ident in a jailed environment Reply-To: kbock@techemail.com X-Originating-Ip: [68.2.131.124] Message-Id: <20030123210009.2CC3C3D86@sitemail.everyone.net> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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