Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:4.14 commit in: /
Date: Sat, 04 May 2019 18:34:38
Message-Id: 1556994854.953005902970bb54ac2c0fe7b02bd78ae9ae6479.mpagano@gentoo
1 commit: 953005902970bb54ac2c0fe7b02bd78ae9ae6479
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 4 18:34:14 2019 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Sat May 4 18:34:14 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=95300590
7
8 Remove redundant patch
9
10 Remove 1520_selinux-genheaders-mdp-socket-h.patch
11
12 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
13
14 0000_README | 4 --
15 1520_selinux-genheaders-mdp-socket-h.patch | 101 -----------------------------
16 2 files changed, 105 deletions(-)
17
18 diff --git a/0000_README b/0000_README
19 index b8d93d4..d92953a 100644
20 --- a/0000_README
21 +++ b/0000_README
22 @@ -515,10 +515,6 @@ Patch: 1510_fs-enable-link-security-restrictions-by-default.patch
23 From: http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
24 Desc: Enable link security restrictions by default.
25
26 -Patch: 1520_selinux-genheaders-mdp-socket-h.patch
27 -From: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git/
28 -Desc: selinux: use kernel linux/socket.h for genheaders and mdp. See bug #684278.
29 -
30 Patch: 1700_ia64_fix_ptrace.patch
31 From: https://patchwork.kernel.org/patch/10198159/
32 Desc: ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
33
34 diff --git a/1520_selinux-genheaders-mdp-socket-h.patch b/1520_selinux-genheaders-mdp-socket-h.patch
35 deleted file mode 100644
36 index fb87c12..0000000
37 --- a/1520_selinux-genheaders-mdp-socket-h.patch
38 +++ /dev/null
39 @@ -1,101 +0,0 @@
40 -From ff1bf4c0714e7936330bb316090a75eaa35061e7 Mon Sep 17 00:00:00 2001
41 -From: Paulo Alcantara <paulo@×××××.ac>
42 -Date: Sun, 24 Feb 2019 21:55:28 -0300
43 -Subject: selinux: use kernel linux/socket.h for genheaders and mdp
44 -
45 -When compiling genheaders and mdp from a newer host kernel, the
46 -following error happens:
47 -
48 - In file included from scripts/selinux/genheaders/genheaders.c:18:
49 - ./security/selinux/include/classmap.h:238:2: error: #error New
50 - address family defined, please update secclass_map. #error New
51 - address family defined, please update secclass_map. ^~~~~
52 - make[3]: *** [scripts/Makefile.host:107:
53 - scripts/selinux/genheaders/genheaders] Error 1 make[2]: ***
54 - [scripts/Makefile.build:599: scripts/selinux/genheaders] Error 2
55 - make[1]: *** [scripts/Makefile.build:599: scripts/selinux] Error 2
56 - make[1]: *** Waiting for unfinished jobs....
57 -
58 -Instead of relying on the host definition, include linux/socket.h in
59 -classmap.h to have PF_MAX.
60 -
61 -Signed-off-by: Paulo Alcantara <paulo@×××××.ac>
62 -Acked-by: Stephen Smalley <sds@×××××××××.gov>
63 -[PM: manually merge in mdp.c, subject line tweaks]
64 -Signed-off-by: Paul Moore <paul@××××××××××.com>
65 ----
66 - scripts/selinux/genheaders/genheaders.c | 1 -
67 - 1 file changed, 1 deletion(-)
68 -
69 -(limited to 'scripts/selinux/genheaders/genheaders.c')
70 -
71 -diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c
72 -index 1ceedea847dd..544ca126a8a8 100644
73 ---- a/scripts/selinux/genheaders/genheaders.c
74 -+++ b/scripts/selinux/genheaders/genheaders.c
75 -@@ -9,7 +9,6 @@
76 - #include <string.h>
77 - #include <errno.h>
78 - #include <ctype.h>
79 --#include <sys/socket.h>
80 -
81 - struct security_class_mapping {
82 - const char *name;
83 ---
84 -cgit 1.2-0.3.lf.el7
85 -
86 ---- a/scripts/selinux/mdp/mdp.c 2019-04-24 18:49:29.253924874 -0400
87 -+++ b/scripts/selinux/mdp/mdp.c 2019-04-24 18:49:59.080183100 -0400
88 -@@ -32,7 +32,6 @@
89 - #include <stdlib.h>
90 - #include <unistd.h>
91 - #include <string.h>
92 --#include <sys/socket.h>
93 -
94 - static void usage(char *name)
95 - {
96 -From ff1bf4c0714e7936330bb316090a75eaa35061e7 Mon Sep 17 00:00:00 2001
97 -From: Paulo Alcantara <paulo@×××××.ac>
98 -Date: Sun, 24 Feb 2019 21:55:28 -0300
99 -Subject: selinux: use kernel linux/socket.h for genheaders and mdp
100 -
101 -When compiling genheaders and mdp from a newer host kernel, the
102 -following error happens:
103 -
104 - In file included from scripts/selinux/genheaders/genheaders.c:18:
105 - ./security/selinux/include/classmap.h:238:2: error: #error New
106 - address family defined, please update secclass_map. #error New
107 - address family defined, please update secclass_map. ^~~~~
108 - make[3]: *** [scripts/Makefile.host:107:
109 - scripts/selinux/genheaders/genheaders] Error 1 make[2]: ***
110 - [scripts/Makefile.build:599: scripts/selinux/genheaders] Error 2
111 - make[1]: *** [scripts/Makefile.build:599: scripts/selinux] Error 2
112 - make[1]: *** Waiting for unfinished jobs....
113 -
114 -Instead of relying on the host definition, include linux/socket.h in
115 -classmap.h to have PF_MAX.
116 -
117 -Signed-off-by: Paulo Alcantara <paulo@×××××.ac>
118 -Acked-by: Stephen Smalley <sds@×××××××××.gov>
119 -[PM: manually merge in mdp.c, subject line tweaks]
120 -Signed-off-by: Paul Moore <paul@××××××××××.com>
121 ----
122 - security/selinux/include/classmap.h | 1 +
123 - 1 file changed, 1 insertion(+)
124 -
125 -(limited to 'security/selinux/include/classmap.h')
126 -
127 -diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h
128 -index bd5fe0d3204a..201f7e588a29 100644
129 ---- a/security/selinux/include/classmap.h
130 -+++ b/security/selinux/include/classmap.h
131 -@@ -1,5 +1,6 @@
132 - /* SPDX-License-Identifier: GPL-2.0 */
133 - #include <linux/capability.h>
134 -+#include <linux/socket.h>
135 -
136 - #define COMMON_FILE_SOCK_PERMS "ioctl", "read", "write", "create", \
137 - "getattr", "setattr", "lock", "relabelfrom", "relabelto", "append", "map"
138 ---
139 -cgit 1.2-0.3.lf.el7
140 -