From owner-cvs-src@FreeBSD.ORG Thu Nov 4 23:09:58 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14D3016A4CE; Thu, 4 Nov 2004 23:09:58 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0728543D1D; Thu, 4 Nov 2004 23:09:58 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iA4N9v9T043346; Thu, 4 Nov 2004 23:09:57 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iA4N9v06043345; Thu, 4 Nov 2004 23:09:57 GMT (envelope-from glebius) Message-Id: <200411042309.iA4N9v06043345@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 4 Nov 2004 23:09:57 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/syslogd syslogd.8 syslogd.c src/sys/sys syslog.h src/lib/libc/gen syslog.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2004 23:09:58 -0000 glebius 2004-11-04 23:09:57 UTC FreeBSD src repository Modified files: usr.sbin/syslogd syslogd.8 syslogd.c sys/sys syslog.h lib/libc/gen syslog.c Log: Protect against local flooder of /var/run/log. Do not loop forever in syslog(3) if we are a priveleged program (sshd, su, etc.). - Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31) Reviewed by: dwmalone, Andrea Campi Approved by: julian (mentor) MFC after: 1 month Revision Changes Path 1.32 +41 -13 src/lib/libc/gen/syslog.c 1.25 +1 -0 src/sys/sys/syslog.h 1.54 +7 -2 src/usr.sbin/syslogd/syslogd.8 1.133 +7 -3 src/usr.sbin/syslogd/syslogd.c