commit | 815dac33b27da9efce0f6008272e69f2a1ba1a33 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon Oct 09 12:15:44 2017 -0700 |
committer | Theodore Ts'o <tytso@mit.edu> | Wed Oct 18 19:52:39 2017 -0400 |
tree | 608a6a2032f1d36b5332ace1f0f8644986dca2a3 | |
parent | 32c3cf028e747d1e9cf0679b16dcbe3794fe4853 [diff] |
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>