[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJfpeguSPJduSF4wuTHZUbvnxOeNFnT40WQXM_+i6S8mHzvWLQ@mail.gmail.com>
Date: Fri, 19 Jun 2015 10:36:03 +0200
From: Miklos Szeredi <miklos@...redi.hu>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: David Howells <dhowells@...hat.com>, sds@...ho.nsa.gov,
Linux-Fsdevel <linux-fsdevel@...r.kernel.org>,
linux-security-module@...r.kernel.org,
"linux-unionfs@...r.kernel.org" <linux-unionfs@...r.kernel.org>,
Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 0/8] Security: Provide unioned file support
On Fri, Jun 19, 2015 at 10:29 AM, Al Viro <viro@...iv.linux.org.uk> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists