diff options
-rw-r--r-- | 0000_README | 4 | ||||
-rw-r--r-- | 1520_selinux-genheaders-mdp-socket-h.patch | 101 |
2 files changed, 0 insertions, 105 deletions
diff --git a/0000_README b/0000_README index b8d93d42..d92953a7 100644 --- a/0000_README +++ b/0000_README @@ -515,10 +515,6 @@ Patch: 1510_fs-enable-link-security-restrictions-by-default.patch From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/ Desc: Enable link security restrictions by default. -Patch: 1520_selinux-genheaders-mdp-socket-h.patch -From: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git/ -Desc: selinux: use kernel linux/socket.h for genheaders and mdp. See bug #684278. - Patch: 1700_ia64_fix_ptrace.patch From: https://patchwork.kernel.org/patch/10198159/ Desc: ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb). diff --git a/1520_selinux-genheaders-mdp-socket-h.patch b/1520_selinux-genheaders-mdp-socket-h.patch deleted file mode 100644 index fb87c124..00000000 --- a/1520_selinux-genheaders-mdp-socket-h.patch +++ /dev/null @@ -1,101 +0,0 @@ -From ff1bf4c0714e7936330bb316090a75eaa35061e7 Mon Sep 17 00:00:00 2001 -From: Paulo Alcantara <paulo@paulo.ac> -Date: Sun, 24 Feb 2019 21:55:28 -0300 -Subject: selinux: use kernel linux/socket.h for genheaders and mdp - -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> -Acked-by: Stephen Smalley <sds@tycho.nsa.gov> -[PM: manually merge in mdp.c, subject line tweaks] -Signed-off-by: Paul Moore <paul@paul-moore.com> ---- - scripts/selinux/genheaders/genheaders.c | 1 - - 1 file changed, 1 deletion(-) - -(limited to 'scripts/selinux/genheaders/genheaders.c') - -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; --- -cgit 1.2-0.3.lf.el7 - ---- a/scripts/selinux/mdp/mdp.c 2019-04-24 18:49:29.253924874 -0400 -+++ b/scripts/selinux/mdp/mdp.c 2019-04-24 18:49:59.080183100 -0400 -@@ -32,7 +32,6 @@ - #include <stdlib.h> - #include <unistd.h> - #include <string.h> --#include <sys/socket.h> - - static void usage(char *name) - { -From ff1bf4c0714e7936330bb316090a75eaa35061e7 Mon Sep 17 00:00:00 2001 -From: Paulo Alcantara <paulo@paulo.ac> -Date: Sun, 24 Feb 2019 21:55:28 -0300 -Subject: selinux: use kernel linux/socket.h for genheaders and mdp - -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> -Acked-by: Stephen Smalley <sds@tycho.nsa.gov> -[PM: manually merge in mdp.c, subject line tweaks] -Signed-off-by: Paul Moore <paul@paul-moore.com> ---- - security/selinux/include/classmap.h | 1 + - 1 file changed, 1 insertion(+) - -(limited to 'security/selinux/include/classmap.h') - -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" --- -cgit 1.2-0.3.lf.el7 - |