summaryrefslogtreecommitdiff
path: root/sys-apps/systemd/files/CVE-2015-7510.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/systemd/files/CVE-2015-7510.patch')
-rw-r--r--sys-apps/systemd/files/CVE-2015-7510.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/sys-apps/systemd/files/CVE-2015-7510.patch b/sys-apps/systemd/files/CVE-2015-7510.patch
deleted file mode 100644
index 088adbb1..00000000
--- a/sys-apps/systemd/files/CVE-2015-7510.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From cb31827d62066a04b02111df3052949fda4b6888 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
-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
-