]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ext4 crypto: separate kernel and userspace structure for the key
authorTheodore Ts'o <tytso@mit.edu>
Mon, 18 May 2015 17:16:47 +0000 (13:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 18 May 2015 17:16:47 +0000 (13:16 -0400)
commite2881b1b51d871a72911faf2fc7e090655940506
tree07bc66d72cc03479c98b7b63edb53f1fa4069383
parentd229959072eba40e1c2a4f53f8af17f1e770eb66
ext4 crypto: separate kernel and userspace structure for the key

Use struct ext4_encryption_key only for the master key passed via the
kernel keyring.

For internal kernel space users, we now use struct ext4_crypt_info.
This will allow us to put information from the policy structure so we
can cache it and avoid needing to constantly looking up the extended
attribute.  We will do this in a spearate patch.  This patch is mostly
mechnical to make it easier for patch review.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto.c
fs/ext4/crypto_fname.c
fs/ext4/crypto_key.c
fs/ext4/ext4.h
fs/ext4/ext4_crypto.h
fs/ext4/super.c