Date: Tue, 19 Mar 2002 00:11:20 -0800 (PST) From: Lamont Granquist <lamont@scriptkiddie.org> To: Terry Lambert <tlambert2@mindspring.com> Cc: Poul-Henning Kamp <phk@critter.freebsd.dk>, <hackers@FreeBSD.ORG> Subject: (PATCH) Re: jail bug with ircd-hybrid in_pcbconnect()? Message-ID: <20020318235051.J2785-100000@coredump.scriptkiddie.org> In-Reply-To: <3C9672F8.D4ADEDDB@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
this fixes the problem, i'm not familiar enough with pcbs to know if this opens up a security hole in the jail though... --- in_pcb.c.old Mon Mar 18 23:57:57 2002 +++ in_pcb.c Tue Mar 19 00:04:33 2002 @@ -500,7 +500,8 @@ struct sockaddr_in sa; int error; - if (inp->inp_laddr.s_addr == INADDR_ANY && p->p_prison != NULL) { + if (inp->inp_laddr.s_addr == INADDR_ANY && inp->inp_lport == 0 && + p->p_prison != NULL) { bzero(&sa, sizeof (sa)); sa.sin_addr.s_addr = htonl(p->p_prison->pr_ip); sa.sin_len=sizeof (sa); 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?20020318235051.J2785-100000>