Skip to content

fscrypt: logging improvements, and use ENOPKG

Eric Biggers linux-fscrypt 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fscrypt: make fscrypt_msg() take inode instead of super_blockfs/crypto/crypto.c fs/crypto/fname.c fs/crypto/fscrypt_private.h +2 more+28 -350 replies
2/4fscrypt: improve warning messages for unsupported encryption contextsfs/crypto/keyinfo.c+15 -30 replies
3/4fscrypt: improve warnings for missing crypto API supportfs/crypto/keyinfo.c+14 -50 replies
4/4fscrypt: use ENOPKG when crypto API support missingfs/crypto/keyinfo.c+11 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] fscrypt: logging improvements, and use ENOPKG

Patches 1-3 make some small improvements to warning and error messages in fs/crypto/, including logging all types of unsupported encryption contexts rather than just ones where the encryption modes are invalid.

Patch 4 changes the error code for "missing crypto API support" from ENOENT to ENOPKG, to avoid an ambiguity. This is a logically separate change, but it's in this series to avoid conflicts.

Eric Biggers (4):
fscrypt: make fscrypt_msg() take inode instead of super_block
fscrypt: improve warning messages for unsupported encryption contexts
fscrypt: improve warnings for missing crypto API support
fscrypt: use ENOPKG when crypto API support missing

 fs/crypto/crypto.c          | 13 ++++----
 fs/crypto/fname.c           |  8 ++---
 fs/crypto/fscrypt_private.h | 10 +++---
 fs/crypto/hooks.c           |  6 ++--
 fs/crypto/keyinfo.c         | 61 +++++++++++++++++++++++++------------
 5 files changed, 57 insertions(+), 41 deletions(-)
Signature · 1 line
2.22.0.657.g960e92d24f-goog