Re: [PATCH 0/8] Security: Provide unioned file support

From: Miklos Szeredi
Date: Fri Jun 19 2015 - 03:53:09 EST


On Fri, Jun 19, 2015 at 9:20 AM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> On Thu, Jun 18, 2015 at 02:32:15PM +0100, David Howells wrote:
>>
>> The attached patches provide security support for unioned files where the
>> security involves an object-label-based LSM (such as SELinux) rather than a
>> path-based LSM.
>>
>> The patches can be broken down into a number of sets:
>>
>> (1) A small patch to drop a lock earlier in overlayfs. The main VFS patch
>> touches the same code, so I put this first.
>>
>> (2) The main VFS patch that makes an open file struct referring to a union
>> file have ->f_path point to the union/overlay file whilst ->f_inode and
>> ->f_mapping refer to the subordinate file that does the actual work.
>
> #1 and #2 applied, will be in tomorrow vfs.git#for-next

Brave.

What's going to happen to all those f_path.dentry uses where the
filesystem thinks it's getting its own dentry?

> git grep f_path.dentry | wc -l
171

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/