From owner-freebsd-bugs@FreeBSD.ORG Sun Nov 23 10:48:25 2008 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10263106564A for ; Sun, 23 Nov 2008 10:48:25 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from web57005.mail.re3.yahoo.com (web57005.mail.re3.yahoo.com [66.196.97.109]) by mx1.freebsd.org (Postfix) with SMTP id 988078FC0A for ; Sun, 23 Nov 2008 10:48:24 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: (qmail 80262 invoked by uid 60001); 23 Nov 2008 10:21:42 -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=qMIJxbZSebWIovc4Mz8C8cr73dQaEPy+g3bNSy4PRgpgvgxDXcnN9k0f3/JSrDDL1p6b4FObWQIBaetfYS2sD1JxUYTOJx8D5N1/jFn8VrgZWcGWJrgwAuX31wEL/Y/4G4PrK5ZwMSerXA1DvDK98dG8ozVZIErVNkBkVB1gUTc=; X-YMail-OSG: NSgc9owVM1kdmOe7OLlC9AmCTlh1sOHP4mcmEB6rHnvoKUtgz9ABG4vwkQU3kJZdnXQSDe_UAI2zNP8KexTGcfi3p600Eke1FmzWTmCOgsDbj7rjA_SBXOK75YHvqfKO9d78ZFc5CqBigftZvjAy58.uISrGzYuFtbBjMAqOcAoOs7AKV9Gl4olqAw-- Received: from [220.255.7.232] by web57005.mail.re3.yahoo.com via HTTP; Sun, 23 Nov 2008 02:21:42 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sun, 23 Nov 2008 02:21:42 -0800 (PST) From: Unga To: freebsd-bugs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <931305.79928.qm@web57005.mail.re3.yahoo.com> Subject: Wrong priority value for normal processes X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: unga888@yahoo.com List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Nov 2008 10:48:25 -0000 Hi all On FreeBSD RELENG_7 on i386 and I have noted with rtprio(2) the priority for root and other normal users is "normal priority" with 65504 as the priority value (rtp.prio). I checked the program flow from /usr/src/usr.bin/su/su.c to /usr/src/lib/libutil/login_class.c and it looks 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. Best regards Unga