-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lattice0/patching
Patching
- Loading branch information
Showing
6 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd $SCRIPT_DIR/k | ||
#patch -p1 < ../patches/genheaders.patch | ||
#patch -p1 < ../patches/security_five.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
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" | ||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
|
||
cd $SCRIPT_DIR/k | ||
#patch -p1 < ../patches/genheaders.patch | ||
#patch -p1 < ../patches/security_five.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
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" | ||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters