-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tweak dropbear build Disable FORTIFY so that stuff runs on legacy Kindles Tweak a few default settings for speed, and to avoid clobbering system files.
- Loading branch information
Showing
8 changed files
with
153 additions
and
85 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
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
13 changes: 13 additions & 0 deletions
13
thirdparty/dropbear/dropbear-2018.76-kindle-nochdir-hack.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,13 @@ | ||
diff --git a/svr-main.c b/svr-main.c | ||
index 6f3144b..65a5c63 100644 | ||
--- a/svr-main.c | ||
+++ b/svr-main.c | ||
@@ -156,7 +156,7 @@ static void main_noinetd() { | ||
closefds = 1; | ||
} | ||
#endif | ||
- if (daemon(0, closefds) < 0) { | ||
+ if (daemon(1, closefds) < 0) { | ||
dropbear_exit("Failed to daemonize: %s", strerror(errno)); | ||
} | ||
} |
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
47 changes: 47 additions & 0 deletions
47
thirdparty/dropbear/dropbear-2018.76-kindle-options-hack.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,47 @@ | ||
diff --git a/default_options.h b/default_options.h | ||
index 3b75eb8..1b3588d 100644 | ||
--- a/default_options.h | ||
+++ b/default_options.h | ||
@@ -19,9 +19,9 @@ IMPORTANT: Some options will require "make clean" after changes */ | ||
#define DROPBEAR_DEFADDRESS "" | ||
|
||
/* Default hostkey paths - these can be specified on the command line */ | ||
-#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key" | ||
-#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key" | ||
-#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key" | ||
+#define DSS_PRIV_FILENAME "settings/SSH/dropbear_dss_host_key" | ||
+#define RSA_PRIV_FILENAME "settings/SSH/dropbear_rsa_host_key" | ||
+#define ECDSA_PRIV_FILENAME "settings/SSH/dropbear_ecdsa_host_key" | ||
|
||
/* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens | ||
* on chosen ports and keeps accepting connections. This is the default. | ||
@@ -44,10 +44,10 @@ IMPORTANT: Some options will require "make clean" after changes */ | ||
* several kB in binary size however will make the symmetrical ciphers and hashes | ||
* slower, perhaps by 50%. Recommended for small systems that aren't doing | ||
* much traffic. */ | ||
-#define DROPBEAR_SMALL_CODE 1 | ||
+#define DROPBEAR_SMALL_CODE 0 | ||
|
||
/* Enable X11 Forwarding - server only */ | ||
-#define DROPBEAR_X11FWD 1 | ||
+#define DROPBEAR_X11FWD 0 | ||
|
||
/* Enable TCP Fowarding */ | ||
/* 'Local' is "-L" style (client listening port forwarded via server) | ||
@@ -239,7 +239,7 @@ Homedir is prepended unless path begins with / */ | ||
|
||
/* The default file to store the daemon's process ID, for shutdown | ||
scripts etc. This can be overridden with the -P flag */ | ||
-#define DROPBEAR_PIDFILE "/var/run/dropbear.pid" | ||
+#define DROPBEAR_PIDFILE "settings/SSH/dropbear.pid" | ||
|
||
/* The command to invoke for xauth when using X11 forwarding. | ||
* "-q" for quiet */ | ||
@@ -290,6 +290,6 @@ be overridden at runtime with -I. 0 disables idle timeouts */ | ||
#define DEFAULT_IDLE_TIMEOUT 0 | ||
|
||
/* The default path. This will often get replaced by the shell */ | ||
-#define DEFAULT_PATH "/usr/bin:/bin" | ||
+#define DEFAULT_PATH "/sbin:/usr/sbin:/bin:/usr/bin" | ||
|
||
#endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */ |
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
12 changes: 0 additions & 12 deletions
12
thirdparty/dropbear/dropbear-2018.76-kindle-pubkey2-gen-hack.patch
This file was deleted.
Oops, something went wrong.