]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fscrypto: move ioctl processing more fully into common code
authorEric Biggers <ebiggers@google.com>
Sun, 27 Nov 2016 00:07:49 +0000 (19:07 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2016 21:26:07 +0000 (16:26 -0500)
commitdb717d8e26c2d1b0dba3e08668a1e6a7f665adde
tree43fd594156e48c3270f52125d5fe0e9e5e50d417
parent8048123576d1011e186b1f62478bcd06ac7cabc8
fscrypto: move ioctl processing more fully into common code

Multiple bugs were recently fixed in the "set encryption policy" ioctl.
To make it clear that fscrypt_process_policy() and fscrypt_get_policy()
implement ioctls and therefore their implementations must take standard
security and correctness precautions, rename them to
fscrypt_ioctl_set_policy() and fscrypt_ioctl_get_policy().  Make the
latter take in a struct file * to make it consistent with the former.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/policy.c
fs/ext4/ext4.h
fs/ext4/ioctl.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
include/linux/fscrypto.h