diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2021-08-09 10:19:47 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-15 14:00:27 +0200 |
| commit | 6a002d48a66076524f67098132538bef17e8445e (patch) | |
| tree | 2924a660a96c32a6f355d9c5cc24e167f51fc0ec /include/linux | |
| parent | bffead8d36480e1e9ec574866f63cadbaa4ebb90 (diff) | |
ovl: prevent private clone if bind mount is not allowed
commit 427215d85e8d1476da1a86b8d67aceb485eb3631 upstream.
Add the following checks from __do_loopback() to clone_private_mount() as
well:
- verify that the mount is in the current namespace
- verify that there are no locked children
Reported-by: Alois Wohlschlager <alois1@gmx-topmail.de>
Fixes: c771d683a62e ("vfs: introduce clone_private_mount()")
Cc: <stable@vger.kernel.org> # v3.18
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
