Skip to content

make default hash algorithm dynamic

Bruno Meneguele linux-integrity 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest2 patches 2 repliesIn review
  2. v61 of 2 patches 0 repliesSuperseded
  3. v52 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v42 patches2 repliesSuperseded
v32 patches1 replySuperseded

Changelog from the cover letter

v6 - make user input lower case regardless and rebase code v5 - remove case insensitive grep
v4 - check against hash_info.h kernel header instead of /proc/crypto v3 - remove wrong comment from m4 script
v2 - add a config time option for setting DEFAULT_HASH_ALGO.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2set default hash algorithm in configuration timeREADME configure.ac m4/default-hash-algo.m4 +3 more+46 -42 replies
2/2make SHA-256 the default hash algorithmm4/default-hash-algo.m4 src/imaevm.h+2 -20 replies

Reviews trailers per patch

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

Read the v7 thread

Cover letter [PATCH v7 ima-evm-utils 0/2] make default hash algorithm dynamic

In order to allow users to set their own security policies, this patch adds an option in configuration time to set the default hash algorithm to be used. Considering that any hash algorithm supported by the kernel can be used, the chosen algo is then checked against the hash_info.h header file.

At the same time, move from SHA1 to SHA256 default hash algorithm, following the general movement of dropping SHA1 support in the major distros due to its weaknesses.

Changelog:
v6 - make user input lower case regardless and rebase code v5 - remove case insensitive grep
v4 - check against hash_info.h kernel header instead of /proc/crypto v3 - remove wrong comment from m4 script
v2 - add a config time option for setting DEFAULT_HASH_ALGO.

Bruno Meneguele (2):
set default hash algorithm in configuration time make SHA-256 the default hash algorithm

 README                  |  2 +-
 configure.ac            |  2 ++
 m4/default-hash-algo.m4 | 36 ++++++++++++++++++++++++++++++++++++
 src/evmctl.c            |  4 ++--
 src/imaevm.h            |  4 ++++
 src/libimaevm.c         |  2 +-
 6 files changed, 46 insertions(+), 4 deletions(-)
 create mode 100644 m4/default-hash-algo.m4
Signature · 1 line
2.31.1