]> git.baikalelectronics.ru Git - kernel.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)
commit514f5e7401133fa9384124f1e92363875c1411dd
tree608a6a2032f1d36b5332ace1f0f8644986dca2a3
parent75bb8079ea62175c15dc223da942914800b2b7e8
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