Hi,
this makes modinfo aware of CONFIG_MODULE_SIG signed modules. The output is
like this:
filename:
/home/mmarek/kmod/testsuite/rootfs-pristine/test-modinfo/ext4-x86_64-sha256.ko
license: GPL
description: Fourth Extended Filesystem
author: Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger,
Theodore Ts'o and others
alias: ext3
alias: ext2
depends: mbcache,jbd2
intree: Y
vermagic: 3.7.0 SMP mod_unload
signer: Magrathea: Glacier signing key
sig_key: E3:C8:FC:A7:3F:B3:1D:DE:84:81:EF:38:E3:4C:DE:4B:0C:FD:1B:F9
sig_hashalgo: sha256
There is no signature verification, it just allows the user to find out if
a module claims to be signed and by which key.
David: I copied the pkey_* definitions from the kernel, I hope that this
is OK (GPL kernel vs. LGPL libkmod), as this is just description of the
format and no code.
Michal
Michal Marek (2):
libkmod-module: Add helper for building the module info list
libkmod: Return module signature information in
kmod_module_get_info()
Makefile.am | 3 +-
libkmod/libkmod-module.c | 71 +++++++++++++++++-----
libkmod/libkmod-private.h | 9 +++
libkmod/libkmod-signature.c | 141 +++++++++++++++++++++++++++++++++++++++++++
4 files changed, 209 insertions(+), 15 deletions(-)
create mode 100644 libkmod/libkmod-signature.c
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html