Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: check permission to open real file
BugLink: https://bugs.launchpad.net/bugs/1894980 Call inode_permission() on real inode before opening regular file on one of the underlying layers. In some cases ovl_permission() already checks access to an underlying file, but it misses the metacopy case, and possibly other ones as well. Removing the redundant permission check from ovl_permission() should be considered later. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> (backported from commit 05acefb) [ saf: resolve conflicts with code added to support mounts over shiftfs ] CVE-2020-16120 Signed-off-by: Seth Forshee <seth.forshee@canonical.com> Acked-by: Marcelo Cerri <marcelo.cerri@canonical.com> Acked-by: Juerg Haefliger <juerg.haefliger@canonical.com> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
- Loading branch information