summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-01-14 20:32:38 +0000
committerZac Medico <zmedico@gentoo.org>2009-01-14 20:32:38 +0000
commit32cb2998153ae18d58d0f0a83e013ba70100ed3e (patch)
tree47f7283a49ffa5860c3ec213f57be38aff4e5dd4
parent33d0d332bc99bf8b2d53f237f3ffc5d19ae62b30 (diff)
downloadportage-32cb2998153ae18d58d0f0a83e013ba70100ed3e.tar.gz
portage-32cb2998153ae18d58d0f0a83e013ba70100ed3e.tar.bz2
portage-32cb2998153ae18d58d0f0a83e013ba70100ed3e.zip
Don't show the running Linux kernel version in the commit message, since it
might leak information that would be useful to attackers. Thanks to Ned Ludd <solar@g.o> for the suggestion. svn path=/main/trunk/; revision=12518
-rwxr-xr-xbin/repoman4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 1d6ef75d4..68c77b86e 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1894,7 +1894,9 @@ else:
sys.stderr.write("Failed to insert portage version in message!\n")
sys.stderr.flush()
portage_version = "Unknown"
- unameout = platform.system() + " " + platform.release() + " "
+ unameout = platform.system() + " "
+ if platform.system() != "Linux":
+ unameout += platform.release() + " "
if platform.system() in ["Darwin", "SunOS"]:
unameout += platform.processor()
else: