diff options
author | Eric Biggers <ebiggers@google.com> | 2017-10-09 12:15:44 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-10-18 19:52:39 -0400 |
commit | 815dac33b27da9efce0f6008272e69f2a1ba1a33 (patch) | |
tree | 608a6a2032f1d36b5332ace1f0f8644986dca2a3 /fs/ext4/file.c | |
parent | 32c3cf028e747d1e9cf0679b16dcbe3794fe4853 (diff) | |
download | linux-stable-815dac33b27da9efce0f6008272e69f2a1ba1a33.tar.gz linux-stable-815dac33b27da9efce0f6008272e69f2a1ba1a33.tar.bz2 linux-stable-815dac33b27da9efce0f6008272e69f2a1ba1a33.zip |
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>
Diffstat (limited to 'fs/ext4/file.c')
0 files changed, 0 insertions, 0 deletions