From owner-freebsd-questions@FreeBSD.ORG Mon Mar 26 06:40:46 2007 Return-Path: X-Original-To: FreeBSD-Questions@FreeBSD.org Delivered-To: FreeBSD-Questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEA2216A403 for ; Mon, 26 Mar 2007 06:40:46 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id DEE7C13C457 for ; Mon, 26 Mar 2007 06:40:46 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id AEE441A4D8F; Sun, 25 Mar 2007 23:40:46 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D11A85130A; Mon, 26 Mar 2007 02:40:45 -0400 (EDT) Date: Mon, 26 Mar 2007 02:40:45 -0400 From: Kris Kennaway To: Mikhail Teterin Message-ID: <20070326064045.GA10259@xor.obsecurity.org> References: <200703260128.52164@aldan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200703260128.52164@aldan> User-Agent: Mutt/1.4.2.2i Cc: robert+freebsd.inbox@cyrus.watson.org, kaeru@pd.jaring.my, FreeBSD-Questions@FreeBSD.org Subject: Re: jail vs. nice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2007 06:40:47 -0000 On Mon, Mar 26, 2007 at 01:28:51AM -0400, Mikhail Teterin wrote: > Hello! > > A program (a TclX' self-test script) works fine in a normal environment, but > fails to renice itself, when running in jail (as root): > > ==== nice-1.8 nice tests FAILED > ==== Contents of test case: > > list [nice -1] [nice] > > ---- Test generated error; Return code was: 1 > ---- Return code should have been one of: 0 2 > ---- errorInfo: failed to increment priority: permission denied > while executing > "nice -1" > invoked from within > "list [nice -1] [nice]" > ("uplevel" body line 2) > invoked from within > "uplevel 1 $script" > > This is new -- just a few months ago the same script was working fine, but it > is failing now in both 7.0 and 6.2. And 5.x. Or it could just be a changed behaviour of the 7.0 kernel, which is common to all builds. Kris