From owner-cvs-all Wed Jun 26 17: 6:21 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E562937B490; Wed, 26 Jun 2002 15:59:27 -0700 (PDT) Received: from freefall.freebsd.org (wollman@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g5QLkuJU063500; Wed, 26 Jun 2002 14:46:56 -0700 (PDT) (envelope-from wollman@freefall.freebsd.org) Received: (from wollman@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g5QLkuA3063499; Wed, 26 Jun 2002 14:46:56 -0700 (PDT) Message-Id: <200206262146.g5QLkuA3063499@freefall.freebsd.org> From: Garrett Wollman Date: Wed, 26 Jun 2002 14:46:56 -0700 (PDT) To: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: cvs commit: src/libexec/fingerd fingerd.8 fingerd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wollman 2002/06/26 14:46:56 PDT Modified files: libexec/fingerd fingerd.8 fingerd.c Log: When the -p flag is specified, set an environment variable to the name of the remote host (or rather, the name as mangled by realhostname_sa()) so that the process can use it to behave differently depending on the origin on the request. We use this to implement rudimentary visibility control on our user information. Make sure that the child process's standard error goes through the same NVT-ASCII filter as is applied to the standard output. Don't attempt to call logerr() from the child since stdio is not safe in a vforked process. Just write a message to fd 2 instead. (Ideally, the parent would open two pipes, and siphon off our stderr to some place less public, but I have not attempted to do so in this implementation.) Revision Changes Path 1.9 +8 -1 src/libexec/fingerd/fingerd.8 1.22 +23 -12 src/libexec/fingerd/fingerd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message