diff options
| author | Eric Biggers <ebiggers@google.com> | 2017-01-05 13:51:18 -0800 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2017-01-08 01:03:41 -0500 |
| commit | a5d431eff2e0bb22156897435aa277ddc96074f7 (patch) | |
| tree | 21fc94db3331336db3fd7bce15820907d6da5261 /include/linux/fscrypto.h | |
| parent | f099d616dd689d27b08dec95d0b6f1f302cf8ec4 (diff) | |
| download | cachepc-linux-a5d431eff2e0bb22156897435aa277ddc96074f7.tar.gz cachepc-linux-a5d431eff2e0bb22156897435aa277ddc96074f7.zip | |
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>
Diffstat (limited to 'include/linux/fscrypto.h')
| -rw-r--r-- | include/linux/fscrypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fscrypto.h b/include/linux/fscrypto.h index 8635ea46ef6e..715f17b3c6d7 100644 --- a/include/linux/fscrypto.h +++ b/include/linux/fscrypto.h @@ -85,8 +85,8 @@ struct fscrypt_name { */ struct fscrypt_operations { unsigned int flags; + const char *key_prefix; int (*get_context)(struct inode *, void *, size_t); - int (*key_prefix)(struct inode *, u8 **); int (*prepare_context)(struct inode *); int (*set_context)(struct inode *, const void *, size_t, void *); int (*dummy_context)(struct inode *); |
