Re: [PATCH v10 1/3] Add a new LSM-supporting anonymous inode interface

2020-11-04 Thread Eric Biggers
At a high level this patch looks fine to me, but a few nits below. Also as I mentioned on the cover letter, it seems this should be split into two patches -- one for the fs changes and one for the security changes. On Sun, Oct 11, 2020 at 01:29:34AM -0700, Lokesh Gidra wrote: > +static struct ino

[PATCH v10 1/3] Add a new LSM-supporting anonymous inode interface

2020-11-03 Thread Lokesh Gidra
From: Daniel Colascione This change adds a new function, anon_inode_getfd_secure, that creates anonymous-node file with individual non-S_PRIVATE inode to which security modules can apply policy. Existing callers continue using the original singleton-inode kind of anonymous-inode file. We can tran

[PATCH v10 1/3] Add a new LSM-supporting anonymous inode interface

2020-10-11 Thread Lokesh Gidra
From: Daniel Colascione This change adds a new function, anon_inode_getfd_secure, that creates anonymous-node file with individual non-S_PRIVATE inode to which security modules can apply policy. Existing callers continue using the original singleton-inode kind of anonymous-inode file. We can tran