Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Miklos Szeredi Newsgroups: linux.kernel Subject: Re: [PATCH 0/8] Security: Provide unioned file support Date: Fri, 19 Jun 2015 10:40:02 +0200 Message-ID: References: X-Original-To: Al Viro Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6686BbIdnApabLA2+/FGFCIMSW2VvDE/UUpufgNSPzg=; b=cO1S9xJKfk2Z/gbI/sgkirpNQHt/YRINyXaEEK/C69OMUicF8e+raRnye3WeRUM3g5 LOsY5nbohYC662damY5Z0rRlkYIC2PMd5dSl5eC0igv/AgLE78Wu5ZXteAhR6B9Tp1Ww hH+jwb8YDhpbPMl4JgUBR3z7iGIX4Vr65SPyQ= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=6686BbIdnApabLA2+/FGFCIMSW2VvDE/UUpufgNSPzg=; b=HheBQWS6qMk1nzfswH185LoZuQYrPjOX5rFJpvXrR0FuJvCIgI92z3mYhgcIzIwyl6 HbN/CFtSwPcn0y+OU6L4fTRaMIFAz7fQQlmuZSfs5zi2W/70Ib3IGCuRp0TChN565Y4e eEezhbTEt8DFD/sLFOhphBJAEKnMLTwIWd3bw0XH7XbUEM7PfmznzbsnMBaRFLrV2t40 5WpHfplC9Ho/eX8toHGzXfY1YxGyiUihXlrOIULfzGCml3kmzKOO/Z4cYBsgkTlTPmHm 9ob1ThTehcuQ7glt/NKG2lClOBgHjcOygv8EFXFa/ADYFYhJGll6Zwlaxoo2ZamM8fPR Ih5g== X-Gm-Message-State: ALoCoQmgd1bZgNqjkmCm0fVd1T7WZZxzfa3rrzBx+n/2cc4QxIX6+Ene3RcXfyhHQ2B7dKK6h5n/ MIME-Version: 1.0 X-Received: by 10.140.102.180 with SMTP id w49mr19685700qge.82.1434702963621; Fri, 19 Jun 2015 01:36:03 -0700 (PDT) X-Originating-IP: [217.173.38.102] Content-Type: text/plain; charset=UTF-8 Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 22 Organization: linux.* mail to news gateway X-Original-Cc: David Howells , sds@tycho.nsa.gov, Linux-Fsdevel , linux-security-module@vger.kernel.org, "linux-unionfs@vger.kernel.org" , Kernel Mailing List X-Original-Date: Fri, 19 Jun 2015 10:36:03 +0200 X-Original-Message-ID: X-Original-References: <20150618133215.12722.70352.stgit@warthog.procyon.org.uk> <20150619072015.GH17109@ZenIV.linux.org.uk> <20150619075903.GI17109@ZenIV.linux.org.uk> <20150619081128.GA24181@tucsk> <20150619082928.GJ17109@ZenIV.linux.org.uk> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: aioe.org linux.kernel:1168617 On Fri, Jun 19, 2015 at 10:29 AM, Al Viro wrote: > Directory, probably? > >> - dentry = lookup_one_len(name, parent->dentry, namelen); >> + dentry = lookup_one_len(name, parent, namelen); > > ... it would better be one. My point is: without a bloody accessor, there's no way to warn if the use is illegal (i.e. nondirectory). Maybe we won't need file->f_dentry, but we do need a way to WARN about abuse (which there IS probably a significant number already and nothing preventing more). Thanks, Miklos -- 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/