summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorVyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>2021-05-27 19:45:45 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2021-08-17 11:47:44 +0200
commite4522bc8733dce1cb4443f1d506869781ee9caa8 (patch)
tree0f1dc4bd4caa290623a5034179148b5e10f2ed94 /fs/overlayfs
parent096a218a588d78d699adcacb6919cff4718c4cac (diff)
downloadlinux-e4522bc8733dce1cb4443f1d506869781ee9caa8.tar.bz2
ovl: disable decoding null uuid with redirect_dir
Currently decoding origin with lower null uuid is not allowed unless user opted-in to one of the new features that require following the lower inode of non-dir upper (index, xino, metacopy). Now we add redirect_dir too to that feature list. Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r--fs/overlayfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index b01d4147520d..97ea35fdd933 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1600,7 +1600,7 @@ static bool ovl_lower_uuid_ok(struct ovl_fs *ofs, const uuid_t *uuid)
* lower inode of non-dir upper.
*/
if (!ofs->config.index && !ofs->config.metacopy &&
- ofs->config.xino != OVL_XINO_ON &&
+ !ofs->config.redirect_dir && ofs->config.xino != OVL_XINO_ON &&
uuid_is_null(uuid))
return false;