linux4.14: update to 4.14.105
add patch to fix build of selinux scripts [ci skip]
This commit is contained in:
parent
970510a9ec
commit
e1d4d73542
2 changed files with 70 additions and 4 deletions
68
srcpkgs/linux4.14/patches/selinux_include.patch
Normal file
68
srcpkgs/linux4.14/patches/selinux_include.patch
Normal file
|
@ -0,0 +1,68 @@
|
|||
From: Paulo Alcantara <paulo@paulo.ac>
|
||||
To: selinux@vger.kernel.org
|
||||
Cc: paul@paul-moore.com, Paulo Alcantara <paulo@paulo.ac>
|
||||
Subject: [PATCH] selinux: use kernel linux/socket.h definitions for PF_MAX
|
||||
Date: Sun, 24 Feb 2019 21:55:28 -0300
|
||||
Message-ID: <20190225005528.28371-1-paulo@paulo.ac> (raw)
|
||||
|
||||
When compiling genheaders and mdp from a newer host kernel, the
|
||||
following error happens:
|
||||
|
||||
In file included from scripts/selinux/genheaders/genheaders.c:18:
|
||||
./security/selinux/include/classmap.h:238:2: error: #error New
|
||||
address family defined, please update secclass_map. #error New
|
||||
address family defined, please update secclass_map. ^~~~~
|
||||
make[3]: *** [scripts/Makefile.host:107:
|
||||
scripts/selinux/genheaders/genheaders] Error 1 make[2]: ***
|
||||
[scripts/Makefile.build:599: scripts/selinux/genheaders] Error 2
|
||||
make[1]: *** [scripts/Makefile.build:599: scripts/selinux] Error 2
|
||||
make[1]: *** Waiting for unfinished jobs....
|
||||
|
||||
Instead of relying on the host definition, include linux/socket.h in
|
||||
classmap.h to have PF_MAX.
|
||||
|
||||
Signed-off-by: Paulo Alcantara <paulo@paulo.ac>
|
||||
---
|
||||
scripts/selinux/genheaders/genheaders.c | 1 -
|
||||
scripts/selinux/mdp/mdp.c | 1 -
|
||||
security/selinux/include/classmap.h | 1 +
|
||||
3 files changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c
|
||||
index 1ceedea847dd..544ca126a8a8 100644
|
||||
--- a/scripts/selinux/genheaders/genheaders.c
|
||||
+++ b/scripts/selinux/genheaders/genheaders.c
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
-#include <sys/socket.h>
|
||||
|
||||
struct security_class_mapping {
|
||||
const char *name;
|
||||
diff --git a/scripts/selinux/mdp/mdp.c b/scripts/selinux/mdp/mdp.c
|
||||
index 073fe7537f6c..6d51b74bc679 100644
|
||||
--- a/scripts/selinux/mdp/mdp.c
|
||||
+++ b/scripts/selinux/mdp/mdp.c
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
-#include <sys/socket.h>
|
||||
|
||||
static void usage(char *name)
|
||||
{
|
||||
diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h
|
||||
index bd5fe0d3204a..201f7e588a29 100644
|
||||
--- a/security/selinux/include/classmap.h
|
||||
+++ b/security/selinux/include/classmap.h
|
||||
@@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#include <linux/capability.h>
|
||||
+#include <linux/socket.h>
|
||||
|
||||
#define COMMON_FILE_SOCK_PERMS "ioctl", "read", "write", "create", \
|
||||
"getattr", "setattr", "lock", "relabelfrom", "relabelto", "append", "map"
|
||||
--
|
||||
2.20.1
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'linux4.14'
|
||||
pkgname=linux4.14
|
||||
version=4.14.99
|
||||
version=4.14.105
|
||||
revision=1
|
||||
patch_args="-Np1"
|
||||
wrksrc="linux-${version}"
|
||||
|
@ -9,7 +9,7 @@ homepage="http://www.kernel.org"
|
|||
license="GPL-2.0-only"
|
||||
short_desc="The Linux kernel and modules (${version%.*} series)"
|
||||
distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz"
|
||||
checksum=8ff98caed5b20b733dedcbe99559d71a0e09e239c0c2488b3fd799c96489eb0a
|
||||
checksum=398bdb98b4e4d0ad0e60f4fa530f3f8451ef8dafdf512b7754aa29953263f6e9
|
||||
|
||||
nodebug=yes # -dbg package is generated below manually
|
||||
nostrip=yes
|
||||
|
@ -24,8 +24,6 @@ _kernver="${version}_${revision}"
|
|||
triggers="kernel-hooks"
|
||||
kernel_hooks_version="${_kernver}"
|
||||
|
||||
broken="https://build.voidlinux.org/builders/x86_64-musl_builder/builds/17191/steps/shell_3/logs/stdio"
|
||||
|
||||
# These files could be modified when an external module is built.
|
||||
mutable_files="
|
||||
/usr/lib/modules/${_kernver}/modules.builtin.bin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue