[PATCH v3 0/2] Fix incorrect overlayfs mmap() and mprotect() LSM access controls
Paul Moore <[email protected]>
| Newsgroups | org.kernel.vger.linux-unionfs,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-security-module,org.kernel.vger.selinux,org.ozlabs.lists.linux-erofs |
|---|---|
| Message-ID | <[email protected]> |
A very minor update to the v2 patchset[2] posted earlier this week. The changelog is below. The primary reason for posting such a lightly revised patchset is to drop the "RFC" qualifier as I've had the opportunity to do additional testing and I'm reasonably happy with the results. As always, anyone reading this is welcome, and encouraged, to do any additional testing they believe might be helpful. I plan to merge this into lsm/stable-7.0 either later tonight, or sometime over the weekend, so the patchset has some time in linux-next. As we're fairly close to the v7.1 merge window, I may decide to hold this for Linus until then; let's see how things turn out with linux-next as well as any additional review comments. [2] https://lore.kernel.org/linux-security-module/[email protected]/ -- CHANGELOG: v3: - fix the LSM hook stubs (kernel robot, Ryan Lee) - fix the lsm_backing_file_cache allocation size (Ryan Lee) - minor style, simplicity tweaks to the SELinux patch v2: - remove the user O_PATH file patch from Amir - add the backing_file LSM blob and lifecycle hooks - update the SELinux code to reflect the other changes v1: - initial version -- Paul Moore (2): lsm: add backing_file LSM hooks selinux: fix overlayfs mmap() and mprotect() access checks fs/backing-file.c | 18 +- fs/erofs/ishare.c | 10 + fs/file_table.c | 21 ++ fs/fuse/passthrough.c | 2 fs/internal.h | 3 fs/overlayfs/dir.c | 2 fs/overlayfs/file.c | 2 include/linux/backing-file.h | 4 include/linux/fs.h | 1 include/linux/lsm_audit.h | 2 include/linux/lsm_hook_defs.h | 5 include/linux/lsm_hooks.h | 1 include/linux/security.h | 22 ++ security/lsm.h | 1 security/lsm_init.c | 9 + security/security.c | 100 +++++++++++ security/selinux/hooks.c | 256 +++++++++++++++++++++--------- security/selinux/include/objsec.h | 17 + 18 files changed, 389 insertions(+), 87 deletions(-)