commit | 9e48a9fd98baf4f8be34bb3c7de85ef64b5fda2f | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Mon Oct 09 12:15:44 2017 -0700 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Jan 04 18:47:11 2018 -0800 |
tree | 9d6c66121eaff068ef10cfcc2e034381fd8a4335 | |
parent | ec822ff8b5e5a26d20c7fe61e42a6177889249e5 [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>