]> git.baikalelectronics.ru Git - kernel.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)
commit11f5e4e16de59262cf2e76d4b6b3998bc4f48354
tree07bc66d72cc03479c98b7b63edb53f1fa4069383
parentb27f50b015b688274e8d11c8c71b41c1ecbe1a09
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