-
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 #49 from balena-io-experimental/kyle/nf-nat
Enable all nf tables features in the kernel
- Loading branch information
Showing
13 changed files
with
6,765 additions
and
87 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.env | ||
.balena | ||
vmlinux/out |
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
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
File renamed without changes.
File renamed without changes.
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
42 changes: 42 additions & 0 deletions
42
vmlinux/6.1/0001-UBUNTU-SAUCE-no-up-add-compat_uts_machine-kernel-com.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,42 @@ | ||
From: Andy Whitcroft <[email protected]> | ||
Date: Fri, 27 Nov 2015 17:38:30 +0000 | ||
Subject: [PATCH] UBUNTU: SAUCE: (no-up) add compat_uts_machine= kernel command | ||
line override | ||
|
||
We wish to use the arm64 buildds to build armhf binaries in 32bit chroots. | ||
To make this work we need uname to return armv7l machine type. To achieve | ||
this add a kernel command line override for the 32bit machine type. | ||
Add compat_uts_machine=<type> to allow the LINUX32 personality to return | ||
that type for uname. | ||
|
||
Signed-off-by: Andy Whitcroft <[email protected]> | ||
--- | ||
kernel/sys.c | 15 +++++++++++++++ | ||
1 file changed, 15 insertions(+) | ||
|
||
diff --git a/kernel/sys.c b/kernel/sys.c | ||
index 83ffd7dccf23..5b030fbaf199 100644 | ||
--- a/kernel/sys.c | ||
+++ b/kernel/sys.c | ||
@@ -1138,6 +1138,21 @@ SYSCALL_DEFINE0(setsid) | ||
|
||
DECLARE_RWSEM(uts_sem); | ||
|
||
+#ifdef COMPAT_UTS_MACHINE | ||
+static char compat_uts_machine[__OLD_UTS_LEN+1] = COMPAT_UTS_MACHINE; | ||
+ | ||
+static int __init parse_compat_uts_machine(char *arg) | ||
+{ | ||
+ strncpy(compat_uts_machine, arg, __OLD_UTS_LEN); | ||
+ compat_uts_machine[__OLD_UTS_LEN] = 0; | ||
+ return 0; | ||
+} | ||
+early_param("compat_uts_machine", parse_compat_uts_machine); | ||
+ | ||
+#undef COMPAT_UTS_MACHINE | ||
+#define COMPAT_UTS_MACHINE compat_uts_machine | ||
+#endif | ||
+ | ||
#ifdef COMPAT_UTS_MACHINE | ||
#define override_architecture(name) \ | ||
(personality(current->personality) == PER_LINUX32 && \ |
Oops, something went wrong.