ovl: verify upper root dir matches lower root dir
authorAmir Goldstein <amir73il@gmail.com>
Wed, 21 Jun 2017 12:28:37 +0000 (15:28 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 4 Jul 2017 20:03:17 +0000 (22:03 +0200)
commit8b88a2e6403638b56556ed5b1c60d9318eefea9c
treec15c850ac2640fb933e393bfb38fdc30d2f73bd2
parent02bcd1577400b0b2eab806ccb9f72d6b5ec7bcca
ovl: verify upper root dir matches lower root dir

When inodes index feature is enabled, verify that the file handle stored
in upper root dir matches the lower root dir or fail to mount.

If upper root dir has no stored file handle, encode and store the lower
root dir file handle in overlay.origin xattr.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/namei.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c