]> asedeno.scripts.mit.edu Git - linux.git/commit
fscrypt: new helper function - fscrypt_prepare_setattr()
authorEric Biggers <ebiggers@google.com>
Mon, 9 Oct 2017 19:15:44 +0000 (12:15 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Oct 2017 23:52:39 +0000 (19:52 -0400)
commit815dac33b27da9efce0f6008272e69f2a1ba1a33
tree608a6a2032f1d36b5332ace1f0f8644986dca2a3
parent32c3cf028e747d1e9cf0679b16dcbe3794fe4853
fscrypt: new helper function - fscrypt_prepare_setattr()

Introduce a helper function for filesystems to call when processing
->setattr() on a possibly-encrypted inode.  It handles enforcing that an
encrypted file can only be truncated if its encryption key is available.

Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
include/linux/fscrypt.h