Fix CVE-2014-0038

This commit is contained in:
Florian Pritz
2014-01-31 09:59:51 +00:00
parent 61a419dc51
commit f7d1116394
2 changed files with 89 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ pkgbase=linux # Build stock -ARCH kernel
#pkgbase=linux-custom # Build kernel with a different name
_srcname=linux-3.13
pkgver=3.13.1
pkgrel=1
pkgrel=2
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
@@ -26,7 +26,9 @@ source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz"
'0005-sunrpc-add-an-info-file-for-the-dummy-gssd-pipe.patch'
'0006-rpc_pipe-fix-cleanup-of-dummy-gssd-directory-when-no.patch'
'0001-syscalls.h-use-gcc-alias-instead-of-assembler-aliase.patch'
'i8042-fix-aliases.patch')
'i8042-fix-aliases.patch'
'0001-x86-x32-Correct-invalid-use-of-user-timespec-in-the-.patch'
)
md5sums=('0ecbaf65c00374eb4a826c2f9f37606f'
'675692f24410f375055d422e7886f3d8'
'ba4468d313adfaf22368add7f58204aa'
@@ -41,7 +43,8 @@ md5sums=('0ecbaf65c00374eb4a826c2f9f37606f'
'd5907a721b97299f0685c583499f7820'
'a724515b350b29c53f20e631c6cf9a14'
'e6fa278c092ad83780e2dd0568e24ca6'
'93dbf73af819b77f03453a9c6de2bb47')
'93dbf73af819b77f03453a9c6de2bb47'
'336d2c4afd7ee5f2bdf0dcb1a54df4b2')
_kernelname=${pkgbase#linux}
@@ -88,6 +91,9 @@ prepare() {
# Fix i8042 aliases
patch -p1 -i "${srcdir}/i8042-fix-aliases.patch"
# Fix CVE-2014-0038
patch -p1 -i "${srcdir}/0001-x86-x32-Correct-invalid-use-of-user-timespec-in-the-.patch"
if [ "${CARCH}" = "x86_64" ]; then
cat "${srcdir}/config.x86_64" > ./.config
else