From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 35FF71384B4 for ; Tue, 24 Nov 2015 16:28:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98E8921C08E; Tue, 24 Nov 2015 16:28:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ED0FF21C08E for ; Tue, 24 Nov 2015 16:28:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B826340751 for ; Tue, 24 Nov 2015 16:28:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 67799706 for ; Tue, 24 Nov 2015 16:28:00 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1448382369.7f59a94c88c938260171d6b5327ea8ae79a032c1.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/files/, sys-apps/systemd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/systemd/files/CVE-2015-7510.patch sys-apps/systemd/systemd-226-r1.ebuild sys-apps/systemd/systemd-226-r2.ebuild sys-apps/systemd/systemd-228-r1.ebuild sys-apps/systemd/systemd-228.ebuild X-VCS-Directories: sys-apps/systemd/ sys-apps/systemd/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 7f59a94c88c938260171d6b5327ea8ae79a032c1 X-VCS-Branch: master Date: Tue, 24 Nov 2015 16:28:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5f3a5313-8912-4e57-b136-2d0ca3092b68 X-Archives-Hash: 1f87d8920a9c9075884864581e97a44c commit: 7f59a94c88c938260171d6b5327ea8ae79a032c1 Author: Mike Gilbert gentoo org> AuthorDate: Tue Nov 24 16:25:56 2015 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue Nov 24 16:26:09 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f59a94c sys-apps/systemd: Backport fix for CVE-2015-7510 Bug: https://bugs.gentoo.org/566716 Package-Manager: portage-2.2.25_p7 sys-apps/systemd/files/CVE-2015-7510.patch | 37 ++++++++++++++++++++++ ...systemd-226-r1.ebuild => systemd-226-r2.ebuild} | 1 + .../{systemd-228.ebuild => systemd-228-r1.ebuild} | 1 + 3 files changed, 39 insertions(+) diff --git a/sys-apps/systemd/files/CVE-2015-7510.patch b/sys-apps/systemd/files/CVE-2015-7510.patch new file mode 100644 index 0000000..088adbb --- /dev/null +++ b/sys-apps/systemd/files/CVE-2015-7510.patch @@ -0,0 +1,37 @@ +From cb31827d62066a04b02111df3052949fda4b6888 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Mon, 23 Nov 2015 13:59:43 -0500 +Subject: [PATCH] nss-mymachines: do not allow overlong machine names + +https://github.com/systemd/systemd/issues/2002 +--- + src/nss-mymachines/nss-mymachines.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c +index 969fa96..c98a959 100644 +--- a/src/nss-mymachines/nss-mymachines.c ++++ b/src/nss-mymachines/nss-mymachines.c +@@ -416,6 +416,9 @@ enum nss_status _nss_mymachines_getpwnam_r( + if (!e || e == p) + goto not_found; + ++ if (e - p > HOST_NAME_MAX - 1) /* -1 for the last dash */ ++ goto not_found; ++ + r = parse_uid(e + 1, &uid); + if (r < 0) + goto not_found; +@@ -573,6 +576,9 @@ enum nss_status _nss_mymachines_getgrnam_r( + if (!e || e == p) + goto not_found; + ++ if (e - p > HOST_NAME_MAX - 1) /* -1 for the last dash */ ++ goto not_found; ++ + r = parse_gid(e + 1, &gid); + if (r < 0) + goto not_found; +-- +2.6.3 + diff --git a/sys-apps/systemd/systemd-226-r1.ebuild b/sys-apps/systemd/systemd-226-r2.ebuild similarity index 99% rename from sys-apps/systemd/systemd-226-r1.ebuild rename to sys-apps/systemd/systemd-226-r2.ebuild index 9a7bc96..10471ac 100644 --- a/sys-apps/systemd/systemd-226-r1.ebuild +++ b/sys-apps/systemd/systemd-226-r2.ebuild @@ -146,6 +146,7 @@ src_prepare() { sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die epatch "${FILESDIR}/218-Dont-enable-audit-by-default.patch" epatch "${FILESDIR}/226-noclean-tmp.patch" + epatch "${FILESDIR}/CVE-2015-7510.patch" epatch_user eautoreconf } diff --git a/sys-apps/systemd/systemd-228.ebuild b/sys-apps/systemd/systemd-228-r1.ebuild similarity index 99% rename from sys-apps/systemd/systemd-228.ebuild rename to sys-apps/systemd/systemd-228-r1.ebuild index 440c35f..1ca11da 100644 --- a/sys-apps/systemd/systemd-228.ebuild +++ b/sys-apps/systemd/systemd-228-r1.ebuild @@ -146,6 +146,7 @@ src_prepare() { sed -i -e 's/GROUP="dialout"/GROUP="uucp"/' rules/*.rules || die epatch "${FILESDIR}/218-Dont-enable-audit-by-default.patch" epatch "${FILESDIR}/228-noclean-tmp.patch" + epatch "${FILESDIR}/CVE-2015-7510.patch" epatch_user eautoreconf }