aboutsummaryrefslogtreecommitdiffstats
path: root/fs/crypto/fscrypt_private.h
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2016-12-05 11:12:48 -0800
committerTheodore Ts'o <tytso@mit.edu>2016-12-31 16:26:21 -0500
commitefee590e4a3fa7b66f78aa06eff33f59570ca96d (patch)
tree0bc8ffedf992cd2a6be13796baea2dfef67dfca6 /fs/crypto/fscrypt_private.h
parentfscrypt: remove user-triggerable warning messages (diff)
downloadlinux-dev-efee590e4a3fa7b66f78aa06eff33f59570ca96d.tar.xz
linux-dev-efee590e4a3fa7b66f78aa06eff33f59570ca96d.zip
fscrypt: pass up error codes from ->get_context()
It was possible for the ->get_context() operation to fail with a specific error code, which was then not returned to the caller of FS_IOC_SET_ENCRYPTION_POLICY or FS_IOC_GET_ENCRYPTION_POLICY. Make sure to pass through these error codes. Also reorganize the code so that ->get_context() only needs to be called one time when setting an encryption policy, and handle contexts of unrecognized sizes more appropriately. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/crypto/fscrypt_private.h')
0 files changed, 0 insertions, 0 deletions