]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - fs/overlayfs/super.c
ovl: generalize ovl_verify_origin() and helpers
authorAmir Goldstein <amir73il@gmail.com>
Thu, 11 Jan 2018 06:25:32 +0000 (08:25 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 09:19:54 +0000 (10:19 +0100)
commit051224438af21047b34160b1e0ad1c5af45fdace
tree236eb05c06c40ca34f1e89f9aee63fe613c58c28
parent1eff1a1deec727bacead79ec64554c1df190f43c
ovl: generalize ovl_verify_origin() and helpers

Remove the "origin" language from the functions that handle set, get
and verify of "origin" xattr and pass the xattr name as an argument.

The same helpers are going to be used for NFS export to get, get and
verify the "upper" xattr for directory index entries.

ovl_verify_origin() is now a helper used only to verify non upper
file handle stored in "origin" xattr of upper inode.

The upper root dir file handle is still stored in "origin" xattr on
the index dir for backward compatibility. This is going to be changed
by the patch that adds directory index entries support.

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