All of lore.kernel.org
 help / color / mirror / Atom feed
* [fsverity-utils PATCH v2 0/4] Add libfsverity_enable() and default params
@ 2020-11-16 20:56 Eric Biggers
  2020-11-16 20:56 ` [fsverity-utils PATCH v2 1/4] programs/fsverity: change default block size from PAGE_SIZE to 4096 Eric Biggers
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Eric Biggers @ 2020-11-16 20:56 UTC (permalink / raw)
  To: linux-fscrypt; +Cc: Luca Boccassi, Jes Sorensen

This patchset adds wrappers around FS_IOC_ENABLE_VERITY to libfsverity,
makes libfsverity (rather than just the fsverity program) default to
SHA-256 and 4096-byte blocks, and makes the fsverity commands share code
to parse the libfsverity_merkle_tree_params.

This is my proposed alternative to Luca's patch
https://lkml.kernel.org/linux-fscrypt/20201113143527.1097499-1-luca.boccassi@gmail.com

Changed since v1:
  - Moved the default hash algorithm and block size handling into
    libfsverity.

Eric Biggers (4):
  programs/fsverity: change default block size from PAGE_SIZE to 4096
  lib/compute_digest: add default hash_algorithm and block_size
  lib: add libfsverity_enable() and libfsverity_enable_with_sig()
  programs/fsverity: share code to parse tree parameters

 include/libfsverity.h          | 83 +++++++++++++++++++++++++++++-----
 lib/compute_digest.c           | 27 ++++++-----
 lib/enable.c                   | 47 +++++++++++++++++++
 lib/lib_private.h              |  6 +++
 programs/cmd_digest.c          | 31 ++-----------
 programs/cmd_enable.c          | 34 +++-----------
 programs/cmd_sign.c            | 32 ++-----------
 programs/fsverity.c            | 35 ++++++++------
 programs/fsverity.h            | 21 ++++++---
 programs/test_compute_digest.c | 18 +++++---
 10 files changed, 201 insertions(+), 133 deletions(-)
 create mode 100644 lib/enable.c

-- 
2.29.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-17 16:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-16 20:56 [fsverity-utils PATCH v2 0/4] Add libfsverity_enable() and default params Eric Biggers
2020-11-16 20:56 ` [fsverity-utils PATCH v2 1/4] programs/fsverity: change default block size from PAGE_SIZE to 4096 Eric Biggers
2020-11-17  9:47   ` Luca Boccassi
2020-11-16 20:56 ` [fsverity-utils PATCH v2 2/4] lib/compute_digest: add default hash_algorithm and block_size Eric Biggers
2020-11-17 10:01   ` Luca Boccassi
2020-11-16 20:56 ` [fsverity-utils PATCH v2 3/4] lib: add libfsverity_enable() and libfsverity_enable_with_sig() Eric Biggers
2020-11-17 10:02   ` Luca Boccassi
2020-11-16 20:56 ` [fsverity-utils PATCH v2 4/4] programs/fsverity: share code to parse tree parameters Eric Biggers
2020-11-17 10:03 ` [fsverity-utils PATCH v2 0/4] Add libfsverity_enable() and default params Luca Boccassi
2020-11-17 16:53 ` Eric Biggers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.