Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=758a169eecf170e024d603f442ed703e5c74dff6

commit 758a169eecf170e024d603f442ed703e5c74dff6
Author: kikadf <[email protected]>
Date:   Fri Jan 17 18:46:05 2014 +0100

cups-1.6.1-8-x86_64

* Fix CVE-2013-6891

diff --git a/source/xapps/cups/CVE-2013-6891.patch 
b/source/xapps/cups/CVE-2013-6891.patch
new file mode 100644
index 0000000..61d10a9
--- /dev/null
+++ b/source/xapps/cups/CVE-2013-6891.patch
@@ -0,0 +1,22 @@
+Description: fix information disclosure via lppasswd binary
+Origin: backported from 1.7.1
+Bug: https://www.cups.org/str.php?L4319
+
+Index: cups-1.6.1/cups/usersys.c
+===================================================================
+--- cups-1.6.1.orig/cups/usersys.c     2014-01-14 10:17:49.630517852 -0500
++++ cups-1.6.1/cups/usersys.c  2014-01-14 10:17:49.626517852 -0500
+@@ -785,7 +785,13 @@
+   if (cg->encryption == (http_encryption_t)-1 || !cg->server[0] ||
+       !cg->user[0] || !cg->ipp_port)
+   {
++#  ifdef HAVE_GETEUID
++    if ((geteuid() == getuid() || !getuid()) && getegid() == getgid() && 
(home = getenv("HOME")) != NULL)
++#  elif !defined(WIN32)
++    if (getuid() && (home = getenv("HOME")) != NULL)
++#  else
+     if ((home = getenv("HOME")) != NULL)
++#  endif /* HAVE_GETEUID */
+     {
+      /*
+       * Look for ~/.cups/client.conf...
diff --git a/source/xapps/cups/FrugalBuild b/source/xapps/cups/FrugalBuild
index c3caf55..6b86cba 100644
--- a/source/xapps/cups/FrugalBuild
+++ b/source/xapps/cups/FrugalBuild
@@ -2,9 +2,11 @@
# Contributor: Miklos Vajna <[email protected]>
# Maintainer: voroskoi <[email protected]>

+options+=('asneeded')
+
pkgname=cups
pkgver=1.6.1
-pkgrel=7
+pkgrel=8
pkgdesc="The CUPS Printing System"
url="http://www.cups.org/";
depends=('libtiff' 'libpng>=1.4.1' 'libjpeg>=8a' 'systemd' 
'poppler-pdftools>=0.18.0' 'xdg-utils')
@@ -18,6 +20,9 @@ up2date="Flastarchive $url -source.tar.bz2"
source=(http://www.cups.org/software/$pkgver/cups-$pkgver-source.tar.bz2 \
cups-1.6.1-upstream-fixes-2.patch \
cups-systemd-socket.patch)
+sha1sums=('cf10a0fd7f5b02f61c087bf44c1df20b34f888e0' \
+          'b0fd50c2335e378f4dc30d8d68270d728659ba5a' \
+          'b123d822abd689c8b563271200d0241b78275b08')

provides=('cupsddk')
replaces=("${provides[@]}")
@@ -29,6 +34,12 @@ subdepends=('openssl>=1.0.0 zlib')
subgroups=('lib')
subarchs=('i686 x86_64 arm')

+# FSA fix ***
+source=(${source[@]} CVE-2013-6891.patch)
+sha1sums=(${sha1sums[@]} '0d58375b7d7ec99766dc9df27bc82e64f4c4e550')
+# ***********
+
+
build() {
Fsed "Icon=cups" "Icon=/usr/share/pixmaps/cups-128.png" desktop/cups.desktop.in

@@ -75,8 +86,4 @@ EOF
fi
}

-sha1sums=('cf10a0fd7f5b02f61c087bf44c1df20b34f888e0' \
-          'b0fd50c2335e378f4dc30d8d68270d728659ba5a' \
-          'b123d822abd689c8b563271200d0241b78275b08')
-
# optimization OK
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to