From owner-freebsd-hackers@FreeBSD.ORG Tue May 19 03:16:49 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0FC1106564A for ; Tue, 19 May 2009 03:16:49 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-ew0-f159.google.com (mail-ew0-f159.google.com [209.85.219.159]) by mx1.freebsd.org (Postfix) with ESMTP id 55B088FC14 for ; Tue, 19 May 2009 03:16:49 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by ewy3 with SMTP id 3so4417699ewy.43 for ; Mon, 18 May 2009 20:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=42sL7pcZTVgg8ZUjvE5wcuauvAxuSXSeoGbFaRBIxJ0=; b=Qzwegke5ITaRQQTr/vPMrnrGteWIqAMYw4H6hRzLgc6PPYkytanwJRF6RdKfctmImE x3J1thznGy4hfVWysVrfgFQmx0uwMmFlH1Io3fB0H/ecu0ZVs08tMA0rUzYqIPka/75t IsCIe5Od4uZGVrc2UvuQS25XuqfjBLfJnFFMA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=mnSD3ikkhpEFXagi+N9dNPmAcO/napV3u2Qz+rSLud5rmFER8lKWtEJ7arKpq3V69T 6q57E3ZIkgBUuU4glRQXu45hzQE4xBFbOW/3lzpxDZmLn12mtGmsdXpOfW/LbjVswNlk kwhadhfbJqiD8emH2qqoFqy6PDwWQzIbYOu7w= MIME-Version: 1.0 Received: by 10.216.29.208 with SMTP id i58mr2398133wea.85.1242701392309; Mon, 18 May 2009 19:49:52 -0700 (PDT) Date: Mon, 18 May 2009 22:49:52 -0400 Message-ID: <4ad871310905181949s2874795eoa5ddf425746310bf@mail.gmail.com> From: Glen Barber To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: sshd(8) - alert user when fails to execute from rc.d X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 03:16:50 -0000 Good evening, hackers. Earlier this evening, I submitted a PR about sshd(8) giving a false-positive when starting on an already occupied socket[1]. I would like to enable some form of console output when the rc.d script is called if the service cannot properly bind to the socket, but I want to make sure I do it "the right way." I was digging through src/crypto/openssh/sshd.c hoping to submit a patch to enable this, but I'm not certain that is the right place to be looking. After digging through erc/etc/rc.d/sshd, I am failing to understand how the service would check the listening port, so now I feel like I am hitting a wall. Any suggestions on how best to enable this? Thanks in advance. [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=134694 -- Glen Barber