aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-04-27 20:43:25 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-28 09:41:51 +0100
commit3cf413bd3f7b022488473aaee15e28cf343c6b12 (patch)
treef6a3c73f30c50a021c920bda3e266ca706598126 /meta/recipes-extended
parent9834785d0b4ee1759d6a469c585a566652cbc38a (diff)
downloadopenembedded-core-3cf413bd3f7b022488473aaee15e28cf343c6b12.tar.gz
logrotate: remove logrotate-CVE-2011-1548.patch
It is a backport patch, and verified that the patch is in the source. (From OE-Core rev: 370dc496c2d6f8fa97a18af49747d15a41fc7bcf) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/logrotate/logrotate/logrotate-CVE-2011-1548.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate/logrotate-CVE-2011-1548.patch b/meta/recipes-extended/logrotate/logrotate/logrotate-CVE-2011-1548.patch
deleted file mode 100644
index ed2750e9c3..0000000000
--- a/meta/recipes-extended/logrotate/logrotate/logrotate-CVE-2011-1548.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-Upstream-Status: Backport
-
-logrotate: fix for CVE-2011-1548
-
-If a logfile is a symlink, it may be read when being compressed, being
-copied (copy, copytruncate) or mailed. Secure data (eg. password files)
-may be exposed.
-
-Portback nofollow.patch from:
-http://logrotate.sourcearchive.com/downloads/3.8.1-5/logrotate_3.8.1-5.debian.tar.gz
-
-Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
-
----
---- a/logrotate.c 2012-09-06 13:25:08.000000000 +0800
-+++ b/logrotate.c 2012-09-06 13:35:57.000000000 +0800
-@@ -390,7 +390,7 @@
- compressedName = alloca(strlen(name) + strlen(log->compress_ext) + 2);
- sprintf(compressedName, "%s%s", name, log->compress_ext);
-
-- if ((inFile = open(name, O_RDWR)) < 0) {
-+ if ((inFile = open(name, O_RDWR | O_NOFOLLOW)) < 0) {
- message(MESS_ERROR, "unable to open %s for compression\n", name);
- return 1;
- }
-@@ -470,7 +470,7 @@
- char *mailArgv[] = { mailCommand, "-s", subject, address, NULL };
- int rc = 0;
-
-- if ((mailInput = open(logFile, O_RDONLY)) < 0) {
-+ if ((mailInput = open(logFile, O_RDONLY | O_NOFOLLOW)) < 0) {
- message(MESS_ERROR, "failed to open %s for mailing: %s\n", logFile,
- strerror(errno));
- return 1;
-@@ -561,7 +561,7 @@
- message(MESS_DEBUG, "copying %s to %s\n", currLog, saveLog);
-
- if (!debug) {
-- if ((fdcurr = open(currLog, (flags & LOG_FLAG_COPY) ? O_RDONLY : O_RDWR)) < 0) {
-+ if ((fdcurr = open(currLog, ((flags & LOG_FLAG_COPY) ? O_RDONLY : O_RDWR) | O_NOFOLLOW)) < 0) {
- message(MESS_ERROR, "error opening %s: %s\n", currLog,
- strerror(errno));
- return 1;