Skip to contentSkip to conversation

MODSIGN: perlify sign-file and merge in x509keyid [ver #3]

PATCH New David Howells 1 participant 2 messages Oct 19, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 MODSIGN: perlify sign-file and merge in x509keyid [ver #3]

Turn sign-file into perl and merge in x509keyid. The latter doesn't need to be a separate script as it doesn't actually need to work out the SHA1 sum of the X.509 certificate itself, since it can get that from the X.509 certificate.

---

 Makefile          |    2 
 scripts/sign-file |  477 ++++++++++++++++++++++++++++++++++++++++++++---------
 scripts/x509keyid |  268 ------------------------------
 3 files changed, 400 insertions(+), 347 deletions(-)
 mode change 100644 => 100755 scripts/sign-file
 delete mode 100755 scripts/x509keyid
Makefile +1 -1
index 4fd82f7..14b9874 100644
@@ -723,7 +723,7 @@ ifeq ($(CONFIG_MODULE_SIG),y)
 MODSECKEY = ./signing_key.priv
 MODPUBKEY = ./signing_key.x509
 export MODPUBKEY
-mod_sign_cmd = sh $(srctree)/scripts/sign-file $(MODSECKEY) $(MODPUBKEY) $(srctree)/scripts/x509keyid
+mod_sign_cmd = perl $(srctree)/scripts/sign-file $(MODSECKEY) $(MODPUBKEY)
 else
 mod_sign_cmd = true
 endif
scripts/sign-file +399 -78

507 lines not on this page · raw message

scripts/x509keyid deleted +0 -268

268 lines not on this page · raw message

#1 lore raw

PATCH 2/2 MODSIGN: Cleanup .gitignore [ver #3]

The module build process no longer creates intermediate files for module signing, so remove them from .gitignore.

---

 .gitignore |    6 ------
 1 file changed, 6 deletions(-)
.gitignore +0 -6
index 0f2f40f..92bd0e4 100644
@@ -14,10 +14,6 @@
 *.o.*
 *.a
 *.s
-*.ko.unsigned
-*.ko.stripped
-*.ko.stripped.dig
-*.ko.stripped.sig
 *.ko
 *.so
 *.so.dbg
@@ -95,6 +91,4 @@ GTAGS
 extra_certificates
 signing_key.priv
 signing_key.x509
-signing_key.x509.keyid
-signing_key.x509.signer
 x509.genkey