From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 28 22:10:04 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4815106566C for ; Mon, 28 Apr 2008 22:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A06A78FC15 for ; Mon, 28 Apr 2008 22:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3SMA4TQ013614 for ; Mon, 28 Apr 2008 22:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3SMA4uS013613; Mon, 28 Apr 2008 22:10:04 GMT (envelope-from gnats) Date: Mon, 28 Apr 2008 22:10:04 GMT Message-Id: <200804282210.m3SMA4uS013613@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Volker Cc: Subject: Re: bin/123065: inetd takes 100% cpu X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 22:10:04 -0000 The following reply was made to PR bin/123065; it has been noted by GNATS. From: Volker To: bug-followup@FreeBSD.org, thogard@abnormal.com Cc: Subject: Re: bin/123065: inetd takes 100% cpu Date: Tue, 29 Apr 2008 00:05:12 +0200 Tim, while your idea might look nice in the first place, I see a lot problems with that solution. I think you're already aware of the security risks of your hack. Your config instructs inetd to set verbose debugging mode, bind to a specific IP address and write it's pidfile to /tmp. It is not guaranteed (and by default not the case) to have 1) syslogd running in single user mode and 2) the network interfaces are up. Also inetd lives in /usr/sbin, needs libs from /usr/lib, telnetd lives in /usr/libexec and also needs libs from /usr/lib. In single user mode the only filesystem mounted will be the root-fs and it's mounted read-only. syslogd logs by default to /var/log. Please make sure, filesystems root-fs, /usr, /var and /tmp are mounted and /tmp and /var are writable, syslogd is started. If you can make sure all these conditions are met, please check if you can reproduce this. If the problem persists, we need ktrace debug output. Also when logging in and out, login(1) tries to write wtmp which may also fail with r/o mounts. Please keep in mind, your solution should not be used in the public network. Volker