From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [RFC] Changes to the LSM file-related hooks for 2.5.58 Date: Wed, 15 Jan 2003 15:56:24 +0000 Sender: linux-kernel-owner@vger.kernel.org Message-ID: <20030115155624.A15189@infradead.org> References: <200301151544.KAA17539@moss-shockers.ncsc.mil> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: ak@muc.de, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@wirex.com, viro@math.psu.edu Return-path: To: "Stephen D. Smalley" Content-Disposition: inline In-Reply-To: <200301151544.KAA17539@moss-shockers.ncsc.mil>; from sds@epoch.ncsc.mil on Wed, Jan 15, 2003 at 10:44:52AM -0500 List-Id: linux-fsdevel.vger.kernel.org On Wed, Jan 15, 2003 at 10:44:52AM -0500, Stephen D. Smalley wrote: > > "Andi Kleen" writes: > > Adding release_private_file requires fixing all code that uses > > init_private_file (including possible third party code). Otherwise > > you have some subtle leak. It would better to rename init_private_file to > > some other name and add appropiate comments so that this can be catched > > easily at compile time. > > Thanks for the suggestion. I've split out this logical change into a > separate patch and reworked it in accordance with your suggestion. See > below. Let me know if this does not address your concern. Once you're at it please aqdd an argument to set file.f_flags so the caller can set O_LARGEFILE properly. The (unmerged) XFS dmapi code wants that.