From isupov@moonhe.jinr.ru  Fri Jan 19 06:08:42 2001
Return-Path: <isupov@moonhe.jinr.ru>
Received: from jimex.jinr.ru (jimex.jinr.ru [159.93.17.7])
	by hub.freebsd.org (Postfix) with ESMTP id D814137B404
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Jan 2001 06:08:40 -0800 (PST)
Received: from moonhe.jinr.ru (root@moonhe.jinr.ru [159.93.18.27])
	by jimex.jinr.ru (8.11.1/8.11.1) with ESMTP id f0JE8UI07528
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 19 Jan 2001 17:08:30 +0300 (MSK)
Received: (from isupov@localhost)
	by moonhe.jinr.ru (8.11.0/8.11.0) id f0JEEI389616;
	Fri, 19 Jan 2001 17:14:18 +0300 (MSK)
	(envelope-from isupov)
Message-Id: <200101191414.f0JEEI389616@moonhe.jinr.ru>
Date: Fri, 19 Jan 2001 17:14:18 +0300 (MSK)
From: isupov@moonhe.jinr.ru
Reply-To: isupov@moonhe.jinr.ru
To: FreeBSD-gnats-submit@freebsd.org
Subject: named-xfer executed at 20 priority level instead of wanted 0 level
X-Send-Pr-Version: 3.2

>Number:         24458
>Category:       bin
>Synopsis:       named-xfer executed at 20 priority level instead of wanted 0 level
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 19 06:10:01 PST 2001
>Closed-Date:    Sat Aug 25 14:41:49 PDT 2001
>Last-Modified:  Sat Aug 25 14:42:11 PDT 2001
>Originator:     Isupov A.Yu.
>Release:        FreeBSD 4.1.1-RELEASE i386
>Organization:
LHE, JINR
>Environment:

	FreeBSD 4.1.1-RELEASE i386

>Description:

	/usr/libexec/named-xfer, executed by /usr/sbin/named, re'nice(3)'ing
	itself to 20 priority level instead of wanted 0 (default) level.
	This occurs because respective (to strange :-) code from
	/usr/src/contrib/bind/bin/named-xfer/named-xfer.c, lines 351-355 :

		#ifdef RENICE
			nice(-40);
			nice(20);
			nice(0);
		#endif

	works correctly (= sets 0 priority, see comments near) only for
	process owned by super-user. But named (and named-xfer) now owned by
	bind:bind

>How-To-Repeat:

	Run code mentioned above not under super-user.

>Fix:

	I think, we need to do nothing with priority in the named-xfer.c and
	inherit priority level from named process. This behaviour can be
	achieved by #undef'ing RENICE in the
	/usr/src/contrib/bind/bin/named/named.h


>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@FreeBSD.ORG>
To: isupov@moonhe.jinr.ru
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24458: named-xfer executed at 20 priority level instead of wanted 0 level
Date: Fri, 19 Jan 2001 14:30:33 -0800

 --5xSkJheCpeK0RUEJ
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 IMO, this bug report should be taken up with the BIND developers. It
 affects other platforms similarly when run as a non-privileged user.
 
 Kris
 
 --5xSkJheCpeK0RUEJ
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6aMAJWry0BWjoQKURAsvWAJ43t2t4F5qC4D4sV5npkojXfJx2VACgiiwE
 CBgj6FrI3RoXglNXkjKcjqs=
 =3cZe
 -----END PGP SIGNATURE-----
 
 --5xSkJheCpeK0RUEJ--
 

From: "A.Yu.Isupov" <isupov@moonhe.jinr.ru>
To: Kris Kennaway <kris@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24458: named-xfer executed at 20 priority level
    instead of wanted 0 level
Date: Sat, 20 Jan 2001 15:18:19 +0300 (MSK)

    Are you can follow up this bug report to BIND team ?
 

From: Kris Kennaway <kris@obsecurity.org>
To: "A.Yu.Isupov" <isupov@moonhe.jinr.ru>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24458: named-xfer executed at 20 priority level instead of wanted 0 level
Date: Sun, 28 Jan 2001 01:00:42 -0800

 --SFyWQ0h3ruR435lw
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Sat, Jan 20, 2001 at 03:18:19PM +0300, A.Yu.Isupov wrote:
 >    Are you can follow up this bug report to BIND team ?
 
 I'm rather busy - it would be better if you did it. See
 http://www.isc.org/products/BIND/
 
 Kris
 
 --SFyWQ0h3ruR435lw
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6c9+5Wry0BWjoQKURAmhQAJ0fKiMV/j5Wcd1Ty9Zz2NAvOcXYoQCgvGN3
 mJjpyt+HeIDTZpDKwTKdYlI=
 =uQrC
 -----END PGP SIGNATURE-----
 
 --SFyWQ0h3ruR435lw--
 

From: "A.Yu.Isupov" <isupov@moonhe.jinr.ru>
To: Kris Kennaway <kris@obsecurity.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24458: named-xfer executed at 20 priority level
    instead of wanted 0 level
Date: Sun, 28 Jan 2001 16:53:04 +0300 (MSK)

   OK, I submit it to bind-bugs@isc.org and obtain number [BIND-BUGS #4033] ...
   Will wait.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Aug 25 14:41:49 PDT 2001 
State-Changed-Why:  
Submitter took this up with ISC 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24458 
>Unformatted:
