[PATCH 1/3] ext4: require key for truncate(2) of encrypted file

Christoph Hellwig hch at infradead.org
Wed Jun 14 00:06:14 PDT 2017


On Wed, Jun 14, 2017 at 12:03:57AM -0700, Eric Biggers wrote:
> None of those are allowed because fallocate() requires a file descriptor, and
> open() fails with ENOKEY if the encryption key is not available.  truncate() is
> different because it takes a path, not a file descriptor.

Ok, that makes sense.



More information about the linux-mtd mailing list