fix CVE-2012-0056

This commit is contained in:
Pierre Schmitz
2012-01-23 13:09:16 +00:00
parent 6c7f3ec114
commit 04334ef05b
2 changed files with 277 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ pkgname=('linux' 'linux-headers' 'linux-docs') # Build stock -ARCH kernel
_kernelname=${pkgname#linux}
_basekernel=3.2
pkgver=${_basekernel}.1
pkgrel=1
pkgrel=2
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
@@ -22,7 +22,8 @@ source=("http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.tar.xz"
"${pkgname}.preset"
'change-default-console-loglevel.patch'
'i915-fix-ghost-tv-output.patch'
'i915-gpu-finish.patch')
'i915-gpu-finish.patch'
'CVE-2012-0056.patch')
md5sums=('364066fa18767ec0ae5f4e4abcf9dc51'
'62ac6ac9b870162f693ecf5e8606423a'
'cbd469a1ba0bc8caa765caa42d429ea9'
@@ -30,7 +31,8 @@ md5sums=('364066fa18767ec0ae5f4e4abcf9dc51'
'eb14dcfd80c00852ef81ded6e826826a'
'9d3c56a4b999c8bfbd4018089a62f662'
'263725f20c0b9eb9c353040792d644e5'
'4cd79aa147825837dc8bc9f6b736c0a0')
'4cd79aa147825837dc8bc9f6b736c0a0'
'a050d76e56d2ce0715c8ff663ae7f436')
build() {
cd "${srcdir}/linux-${_basekernel}"
@@ -38,6 +40,10 @@ build() {
# add upstream patch
patch -p1 -i "${srcdir}/patch-${pkgver}"
# patch for CVE-2012-0056
# see http://blog.zx2c4.com/749 for details
patch -p1 -i "${srcdir}/CVE-2012-0056.patch"
# add latest fixes from stable queue, if needed
# http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git