]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs,fsverity: remove check for fsverity being enabled in setattr_prepare()
authorAndrey Albershteyn <aalbersh@kernel.org>
Mon, 27 Jul 2026 09:43:52 +0000 (11:43 +0200)
committerEric Biggers <ebiggers@kernel.org>
Wed, 29 Jul 2026 04:25:03 +0000 (21:25 -0700)
commitd2f96bcb89d36d488a10e3bcf819b98536968286
tree688412e71254487a0bae9d68fe9c5d5c8f611a0c
parentf5098b6bae761e346ebcd9da7f95622c04733cff
fs,fsverity: remove check for fsverity being enabled in setattr_prepare()

The check that fs-verity is available in the kernel is not necessary
here. Filesystems could have fsverity files even without fs-verity
enabled. In that case, truncate on fsverity file will succeed, what this
check is trying to prevent.

Fixes: e9734653c523 ("fs,fsverity: reject size changes on fsverity files in setattr_prepare")
Cc: stable@vger.kernel.org
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260727094352.1734826-1-aalbersh@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
fs/attr.c