From dan@ducky.nz.freebsd.org  Mon Sep 25 04:14:49 2000
Return-Path: <dan@ducky.nz.freebsd.org>
Received: from ducky.nz.freebsd.org (ns1.unixathome.org [203.79.82.27])
	by hub.freebsd.org (Postfix) with ESMTP id 252CF37B42C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Sep 2000 04:14:48 -0700 (PDT)
Received: (from dan@localhost)
	by ducky.nz.freebsd.org (8.9.3/8.9.3) id XAA17055;
	Mon, 25 Sep 2000 23:14:45 +1200 (NZST)
Message-Id: <200009251114.XAA17055@ducky.nz.freebsd.org>
Date: Mon, 25 Sep 2000 23:14:45 +1200 (NZST)
From: dan@langille.org
Sender: dan@ducky.nz.freebsd.org
Reply-To: dan@langille.org
To: FreeBSD-gnats-submit@freebsd.org
Subject:
X-Send-Pr-Version: 3.2

>Number:         21537
>Category:       bin
>Synopsis:       killall -HUP inetd ignores changes to /etc/auth.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    dwmalone
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 25 04:20:01 PDT 2000
>Closed-Date:    Mon Oct 16 02:00:57 PDT 2000
>Last-Modified:  Mon Oct 16 02:01:48 PDT 2000
>Originator:     
>Release:        
>Organization:
>Environment:
>Description:
 Submitter-Id:   
 Originator:     Dan Langille
 Organization:   The FreeBSD Diary
 Confidential:   no
 Synopsis:       inetd doesn't notice change in auth method after a HUP
 Severity:       non-critical
 Priority:	low
 Category:	bin
 Release:        FreeBSD 4.1-STABLE i386
 Class:          sw-bug
 Environment: 
 
 FreeBSD ducky.nz.freebsd.org 4.1-STABLE FreeBSD 4.1-STABLE #0: 
 Mon Aug 21 18:17:33 NZST 2000     
 root@ducky.nz.freebsd.org:/usr/obj/usr/src/sys/DUCKY  i386
 
 Description:
 
 If you change the auth method in /etc/inetd.conf, killall -hup inetd, 
 inetd doesn't start using the new auth method.  it continues to use 
 the old.
 
 How-To-Repeat: 
 
 Set auth method to be:
 
 auth stream  tcp  nowait  root internal  auth -r -f -n -o UNKNOWN -t 30
 
 ensure auth is working properly.
 
 Then change the auth method to be:
 
 auth    stream  tcp     nowait  nobody /usr/local/etc/ident.sh     auth
 
 where /usr/local/etc/ident.sh is:
 
 #!/bin/sh
 ident=`/bin/date +%s`
 xxx=`/usr/bin/head -c 11`
 echo $xxx : USERID:UNIX:$ident
 
 then killall -hup inetd
 
  $ telnet 192.168.0.20 113
 Trying 192.168.0.20...
 Connected to ducky.nz.freebsd.org.
 Escape character is '^]'.
 3413
 0 , 0 : ERROR : UNKNOWN-ERROR
 Connection closed by foreign host.
 
 
 That's the old auth.  There's no way the shell script can produce that.
 
 Problem confirmed and bug fix supplied by 
 Ben Smithurst <ben@scientia.demon.co.uk>.  Thanks Ben
 
 Patch tested and confirmed to work 
 under above named environment by 
 Dan Langille <dan@langille.org>
 
 Fix:
 
 Index: inetd.c
 ===================================================================
 RCS file: /usr/cvs/src/usr.sbin/inetd/inetd.c,v
 retrieving revision 1.83
 diff -u -r1.83 inetd.c
 --- inetd.c	2000/08/03 15:45:38	1.83
 +++ inetd.c	2000/09/21 15:21:13
 @@ -919,6 +919,7 @@
  			sep->se_maxchild = new->se_maxchild;
  			sep->se_numchild = new->se_numchild;
  			sep->se_maxcpm = new->se_maxcpm;
 +			sep->se_bi = new->se_bi;
  			/* might need to turn on or off service now */
  			if (sep->se_fd >= 0) {
  			      if (sep->se_maxchild > 0
 
 --r5Pyd7+fXNt84Ff3--
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Sep 25 12:25:29 PDT 2000 
Responsible-Changed-Why:  
Orphaned PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21537 
Responsible-Changed-From-To: freebsd-bugs->dwmalone 
Responsible-Changed-By: johan 
Responsible-Changed-When: Sun Oct 15 23:27:25 PDT 2000 
Responsible-Changed-Why:  
David said he wants to look into inetd PRs. 
This one has a patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=21537 
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Mon Oct 16 02:00:57 PDT 2000 
State-Changed-Why:  
Duplicated by PR 21650. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=21537 
>Unformatted:
