Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262202AbVAYWZj (ORCPT ); Tue, 25 Jan 2005 17:25:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262198AbVAYWYR (ORCPT ); Tue, 25 Jan 2005 17:24:17 -0500 Received: from fw.osdl.org ([65.172.181.6]:43692 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262180AbVAYWWI (ORCPT ); Tue, 25 Jan 2005 17:22:08 -0500 Date: Tue, 25 Jan 2005 14:16:30 -0800 From: Chris Wright To: Ingo Molnar Cc: Chris Wright , "Jack O'Quin" , Paul Davis , Con Kolivas , linux , rlrevell@joe-job.com, CK Kernel , utz , Andrew Morton , alexn@dsv.su.se, Rui Nuno Capela , Arjan van de Ven , Nick Piggin Subject: Re: [patch, 2.6.11-rc2] sched: /proc/sys/kernel/rt_cpu_limit tunable Message-ID: <20050125141630.F24171@build.pdx.osdl.net> References: <20050124085902.GA8059@elte.hu> <20050124125814.GA31471@elte.hu> <87k6q2umla.fsf@sulphur.joq.us> <20050125083724.GA4812@elte.hu> <87oefdfaxp.fsf@sulphur.joq.us> <20050125214900.GA9421@elte.hu> <20050125135508.A24171@build.pdx.osdl.net> <20050125215758.GA10811@elte.hu> <20050125140302.C24171@build.pdx.osdl.net> <20050125220814.GA11331@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20050125220814.GA11331@elte.hu>; from mingo@elte.hu on Tue, Jan 25, 2005 at 11:08:14PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 23 * Ingo Molnar (mingo@elte.hu) wrote: > But if someone reviewed all of the rlimit use in the kernel, we could > make it a policy that rlimits might change. Any unsafe use could be made > safe pretty easily. Since they are ulongs they are updated atomically > even without any locking - but e.g. the default and the hard limit might > change separately. (from the viewpoint of rlimit-using kernel code.) I can wade through them later in the week. > obviously a remote rlimit must listen to same kind of security > permissions as e.g. ptrace or signal sending. Yeah. thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/