Skip to content

fscrypto: cleanups and fixes

Eric Biggers linux-ext4 linux-f2fs-devel linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13fscrypto: remove unnecessary includesfs/crypto/crypto.c fs/crypto/fname.c fs/crypto/keyinfo.c+0 -60 replies
2/13fscrypto: rename some functions for clarityfs/crypto/crypto.c fs/crypto/fname.c fs/crypto/policy.c +3 more+19 -171 reply
3/13fscrypto: rename functions to load and unload inode encryption infofs/crypto/fname.c fs/crypto/keyinfo.c fs/crypto/policy.c +7 more+38 -360 replies
4/13fscrypto: return bool instead of int where appropriatefs/crypto/policy.c include/linux/fscrypto.h+18 -180 replies
5/13fscrypto: comment improvements and fixesfs/crypto/crypto.c fs/crypto/fname.c fs/crypto/keyinfo.c +1 more+90 -170 replies
6/13fscrypto: crypto_alloc_skcipher() always returns an ERR_PTR(), never NULLfs/crypto/keyinfo.c+2 -20 replies
7/13fscrypto: simplify building key descriptor stringfs/crypto/keyinfo.c+2 -70 replies
8/13fscrypto: use standard macros from kernel.hfs/crypto/fname.c+5 -120 replies
9/13fscrypto: make fname_encrypt() actually return length of ciphertextfs/crypto/fname.c+4 -30 replies
10/13fscrypto: restrict setting new policy to empty files and directories onlyfs/crypto/policy.c+30 -120 replies
11/13fscrypto: restrict setting encryption policy to inode ownerfs/crypto/policy.c+3 -00 replies
12/13fscrypto: require write access to mount to set encryption policyfs/crypto/policy.c fs/f2fs/file.c include/linux/fscrypto.h+12 -50 replies
13/13fscrypto: improve error handling in fscrypt_set_policy()fs/crypto/policy.c+29 -350 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/13] fscrypto: cleanups and fixes

This patchset includes various cleanups for the new filesystem encryption code as well as some bug fixes for the FS_IOC_SET_ENCRYPTION_POLICY ioctl.

Eric Biggers (13):
fscrypto: remove unnecessary includes
fscrypto: rename some functions for clarity
fscrypto: rename functions to load and unload inode encryption info
fscrypto: return bool instead of int where appropriate
fscrypto: comment improvements and fixes
fscrypto: crypto_alloc_skcipher() always returns an ERR_PTR(), never
NULL
fscrypto: simplify building key descriptor string
fscrypto: use standard macros from kernel.h
fscrypto: make fname_encrypt() actually return length of ciphertext
fscrypto: restrict setting new policy to empty files and directories
only
fscrypto: restrict setting encryption policy to inode owner
fscrypto: require write access to mount to set encryption policy
fscrypto: improve error handling in fscrypt_set_policy()

 fs/crypto/crypto.c       |  25 +++++----
 fs/crypto/fname.c        |  72 ++++++++++++++++----------
 fs/crypto/keyinfo.c      |  47 ++++++++---------
 fs/crypto/policy.c       | 131 +++++++++++++++++++++++++++--------------------
 fs/f2fs/dir.c            |   4 +-
 fs/f2fs/f2fs.h           |   6 +--
 fs/f2fs/file.c           |  10 ++--
 fs/f2fs/inode.c          |   2 +-
 fs/f2fs/namei.c          |  10 ++--
 fs/f2fs/super.c          |   2 +-
 include/linux/fscrypto.h |  81 +++++++++++++++++++++--------
 11 files changed, 236 insertions(+), 154 deletions(-)
Signature · 9 lines
2.7.4


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140