]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/efivarfs: add check for disallowing file truncation
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 19 Jan 2025 14:59:41 +0000 (09:59 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 19 Jan 2025 16:49:10 +0000 (17:49 +0100)
commit8a32d46b204396255462712afbef16e227423f68
tree9cba28c2a429141bb3c521c6c1bbb7059a227c62
parent8b4bc207f981bd87728d2e1c0cf6f4304f9d0159
selftests/efivarfs: add check for disallowing file truncation

Now that the ability of arbitrary writes to set the inode size is
fixed, verify that a variable file accepts a truncation operation but
does not change the stat size because of it.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
tools/testing/selftests/efivarfs/efivarfs.sh