ovl: Handle verity during copy-up
authorAlexander Larsson <alexl@redhat.com>
Wed, 19 Apr 2023 11:58:45 +0000 (13:58 +0200)
committerAmir Goldstein <amir73il@gmail.com>
Sat, 12 Aug 2023 16:02:38 +0000 (19:02 +0300)
commit0c71faf5a607c8744ccee702846970bdb1a8005f
tree77927ca9e28ea199e627a4ee5b734ea0cff7c3cb
parent184996e92e86c4a4224dc4aaee75b2ccd04b6e78
ovl: Handle verity during copy-up

During regular metacopy, if lowerdata file has fs-verity enabled, and
the verity option is enabled, we add the digest to the metacopy xattr.

If verity is required, and lowerdata does not have fs-verity enabled,
fall back to full copy-up (or the generated metacopy would not
validate).

Signed-off-by: Alexander Larsson <alexl@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/copy_up.c
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c