lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160106010619.31d72beb@gentp.lnet>
Date:	Wed, 6 Jan 2016 01:06:19 +0100
From:	Luis Ressel <aranea@...ah.de>
To:	<linux-kernel@...r.kernel.org>
Subject: Fw: [PATCH] Restrict read access to private module signing key

I forgot to CC this mailing list.

Begin forwarded message:

Date: Sat,  2 Jan 2016 16:13:50 +0100
From: Luis Ressel <aranea@...ah.de>
To: keyrings@...r.kernel.org
Cc: keyrings@...ux-nfs.org, David Howells <dhowells@...hat.com>, David
Woodhouse <dwmw2@...radead.org> Subject: [PATCH] Restrict read access
to private module signing key


The autogenerated module signing key shouldn't be world-readable.

Signed-off-by: Luis Ressel <aranea@...ah.de>
---
 certs/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/certs/Makefile b/certs/Makefile
index 28ac694..7f1f082 100644
--- a/certs/Makefile
+++ b/certs/Makefile
@@ -49,6 +49,8 @@ $(obj)/signing_key.pem: $(obj)/x509.genkey
 	@echo "### needs to be run as root, and uses a hardware random"
 	@echo "### number generator if one is available."
 	@echo "###"
+	touch $(obj)/signing_key.pem
+	chmod 0600 $(obj)/signing_key.pem
 	openssl req -new -nodes -utf8 -$(CONFIG_MODULE_SIG_HASH) -days
36500 \ -batch -x509 -config $(obj)/x509.genkey \
 		-outform PEM -out $(obj)/signing_key.pem \
-- 
2.6.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ