From owner-freebsd-questions@FreeBSD.ORG Mon Mar 26 08:53:17 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 DD51A16A400 for ; Mon, 26 Mar 2007 08:53:17 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id B701B13C458 for ; Mon, 26 Mar 2007 08:53:17 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id CEF8146DFA; Mon, 26 Mar 2007 03:53:16 -0500 (EST) Date: Mon, 26 Mar 2007 09:53:16 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Kris Kennaway In-Reply-To: <20070326064045.GA10259@xor.obsecurity.org> Message-ID: <20070326094041.S16484@fledge.watson.org> References: <200703260128.52164@aldan> <20070326064045.GA10259@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: kaeru@pd.jaring.my, Mikhail Teterin , 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 08:53:18 -0000 On Mon, 26 Mar 2007, Kris Kennaway wrote: > On Mon, Mar 26, 2007 at 01:28:51AM -0400, Mikhail Teterin wrote: >> >> 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. This e-mail exchange has left me unclear on what has broken on what versions. Mikhail, when you say "7.0 and 6.2", do you mean actual 7.0 and 6.2 boxes, or do you mean the package build environment running on 7.0 on pointyhat as Kris's followup seems to suggest? And what does "failing now" mean -- a quick glance at the kernel source in RELENG_5 suggests it started "failing now" a long time ago? Robert N M Watson Computer Laboratory University of Cambridge