From: Al Viro Date: Mon, 7 Jul 2025 01:51:37 +0000 (-0400) Subject: ovl_get_verity_digest(): constify path argument X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=465309d63f6d98c58d545b2e96130432020a6c9e;p=thirdparty%2Fkernel%2Fstable.git ovl_get_verity_digest(): constify path argument Reviewed-by: Christian Brauner Signed-off-by: Al Viro --- diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h index 79cebf2a59d33..e3a74922d9e4d 100644 --- a/fs/overlayfs/overlayfs.h +++ b/fs/overlayfs/overlayfs.h @@ -567,7 +567,7 @@ int ovl_ensure_verity_loaded(const struct path *path); int ovl_validate_verity(struct ovl_fs *ofs, const struct path *metapath, const struct path *datapath); -int ovl_get_verity_digest(struct ovl_fs *ofs, struct path *src, +int ovl_get_verity_digest(struct ovl_fs *ofs, const struct path *src, struct ovl_metacopy *metacopy); int ovl_sync_status(struct ovl_fs *ofs); diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c index b3264644edc4e..14f1c2a98f172 100644 --- a/fs/overlayfs/util.c +++ b/fs/overlayfs/util.c @@ -1455,7 +1455,7 @@ int ovl_validate_verity(struct ovl_fs *ofs, return 0; } -int ovl_get_verity_digest(struct ovl_fs *ofs, struct path *src, +int ovl_get_verity_digest(struct ovl_fs *ofs, const struct path *src, struct ovl_metacopy *metacopy) { int err, digest_size;