On Thu, May 09, 2024 at 08:43:23AM -0700, Darrick J. Wong wrote: > > Well, fsverity as-is is intended for use cases where you care about > > integrity of the file. For that disabling it really doesn't make > > sense. If we have other use cases we can probably add a variant > > of fsverity that clearly deals with non-integrity checksums. > > Although just disabling them if they mismatch still feels like a > > somewhat odd usage model. > > Yeah, it definitely exists in the same weird grey area of turning off > metadata checksum validation to extract as many files from a busted fs > as can be done. I've certainly thought about the possibilities of adding a CRC checksum type. We do need to explicitly mark this as a non-cryptographic checksum since it might have make a difference for IMA policies, etc. This would be useful for detecting problems for people's video or music archives, for example. I can imagine situations where it might make sense to allow the file owner to be able to disable fsverity, whether the checksum and use case involves cryptographic or non-cryptographic checksums. Having a flag in the fsverity header indicating whether dropping fsverity protection requires elevated privileged or can be done by the file owner seems to make sense to me. - Ted