]> git.baikalelectronics.ru Git - kernel.git/commit
fscrypt: make fscrypt_operations.key_prefix a string
authorEric Biggers <ebiggers@google.com>
Thu, 5 Jan 2017 21:51:18 +0000 (13:51 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Jan 2017 06:03:41 +0000 (01:03 -0500)
commit478597740bf504f4f01ae24bd0a63b7cd7b08d1b
tree21fc94db3331336db3fd7bce15820907d6da5261
parentc48bc93b58f5630577cda9260bf2a0a09bcc80e7
fscrypt: make fscrypt_operations.key_prefix a string

There was an unnecessary amount of complexity around requesting the
filesystem-specific key prefix.  It was unclear why; perhaps it was
envisioned that different instances of the same filesystem type could
use different key prefixes, or that key prefixes could be binary.
However, neither of those things were implemented or really make sense
at all.  So simplify the code by making key_prefix a const char *.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/keyinfo.c
fs/ext4/ext4.h
fs/ext4/super.c
fs/f2fs/f2fs.h
fs/f2fs/super.c
fs/ubifs/crypto.c
include/linux/fscrypto.h