From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH] VM fix for 2.4.0-test9 & OOM handler Date: Mon, 9 Oct 2000 22:51:34 +0100 (BST) In-Reply-To: from "Linus Torvalds" at Oct 09, 2000 02:38:10 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: From: Alan Cox Sender: owner-linux-mm@kvack.org Return-Path: To: Linus Torvalds Cc: Alan Cox , Jim Gettys , Andi Kleen , Ingo Molnar , Andrea Arcangeli , Rik van Riel , Byron Stanoszek , MM mailing list , linux-kernel@vger.kernel.org List-ID: > > across AF_UNIX sockets so the mechanism is notionally there to provide the > > credentials to X, just not to use them > > The problem is that there is no way to keep track of them afterwards. If you use mmap for your allocator then beancounter will get it right. Every resource knows which beancounter it was charged too. It adds an overhead the average desktop user won't like but which is pretty much essential to do real mainframe world operation. So it would become seteuid(Client->passed_euid); mmap(buffer in pages) seteuid(getuid()); With lightwait counting semantics its hard to make any tracking system work well in the corner cases like resources that survive process death. Alan -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/