From owner-freebsd-stable@FreeBSD.ORG Sat Nov 22 09:52:32 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B0A81106564A for ; Sat, 22 Nov 2008 09:52:32 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57007.mail.re3.yahoo.com (web57007.mail.re3.yahoo.com [66.196.97.111]) by mx1.freebsd.org (Postfix) with SMTP id 39B9F8FC14 for ; Sat, 22 Nov 2008 09:52:32 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 6581 invoked by uid 60001); 22 Nov 2008 09:25:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=zC1lwu7XVrSJ2+HbFwDOGDYkyz/kNN5uBKTNwzXe0v+9+/wnOxemsJIWZUc6EOuRdNuWhdMyLuS0P6lVgqpPMFlesfwI1djOCxBvya5O8raAKY/19sr6Q3SD/oGPQwpCgm+PwwOpZtuDgx1nHCariACmBTJxG3zzLAXZAtAKvn8=; X-YMail-OSG: E4aObrcVM1l_NDtgxGHdBGXA.3Flqoz.ujvMJCYLMjnKYyHz7kROebFC422a1kLbfe.90anfIg9HVLCQptZ8Th6tGELJ_4t38P8DcPmdCK7U9sXT1JHgaO5bzohDy13sXZAjQqSxAV4BpHPxMbRsHmHOW84f80nOL3NHhK0Hk6accuhBOkwVds.ZrQ-- Received: from [220.255.7.231] by web57007.mail.re3.yahoo.com via HTTP; Sat, 22 Nov 2008 01:25:49 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sat, 22 Nov 2008 01:25:49 -0800 (PST) From: Unga To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <88609.6523.qm@web57007.mail.re3.yahoo.com> Subject: Weird priority for normal X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Nov 2008 09:52:32 -0000 Hi all I'm using FreeBSD RELENG_7 on i386 and noted with rtprio(2) the priority for root and other normal users is "normal priority" with 65504 as the priority value (rtp.prio). Please note, this is not the latest RELENG_7, my system is compiled somewhere on May. I checked the program flow from /usr/src/usr.bin/su/su.c to /usr/src/lib/libutil/login_class.c and found setusercontext() is setting the priority right but the moment it come out from the setusercontext() call in su.c, the priority has already turn to 65504. It looks like this is a bug. I had a quite thorough look but did not see any error. I'm not sure by now is it been fixed. Do others experience it? Best regards Unga