Greg Alexander
|
a3bbb0bf96
|
Fix the SIGSEGV that users have been reporting - don't execute anything
that had already been registered with atexit().
|
2019-08-11 00:08:25 -04:00 |
|
Greg Alexander
|
62b119e07f
|
Keep around a copy of the old dropbear.err so that it can be accessed
after the server is re-started for a crash (to get easy access to the
crash dump).
|
2019-07-28 22:26:55 -04:00 |
|
Greg Alexander
|
12ccb85024
|
Don't build the stand-alone executables with -static because that doesn't
seem to be necessary with the newer NDK.
|
2019-06-16 22:01:46 -04:00 |
|
Greg Alexander
|
9fe01ea860
|
Add new dropbear-2019.78 sources to the JNI Makefile.
|
2019-06-16 18:28:18 -04:00 |
|
Greg Alexander
|
258e88e458
|
Merge branch 'dropbear'
Update to dropbear-2019.78.
Probably does not build...
|
2019-06-15 23:36:15 -04:00 |
|
Greg Alexander
|
22d7993e23
|
Find native lib directory the correct way, using
Context.getApplicationInfo().nativeLibraryDir.
|
2019-05-26 01:29:58 -04:00 |
|
Greg Alexander
|
7db95c7815
|
update to target ABI "all", which adds x86_64 and arm64
|
2019-05-26 00:49:30 -04:00 |
|
Greg Alexander
|
cec5e52c7e
|
Now it compiles with the new NDK.
|
2019-05-25 22:46:18 -04:00 |
|
Greg Alexander
|
7419f62d98
|
Update minSdkVersion to 16, because that's the oldest supported by the
NDK these days.
|
2019-05-25 22:31:09 -04:00 |
|
Greg Alexander
|
9efa856065
|
add option to set environment variables
|
2018-05-16 16:23:12 -04:00 |
|
Greg Alexander
|
88335f47b6
|
initial hack to see if building for armeabi and x86 will work for x86_64
phones too
|
2018-03-21 21:42:19 -04:00 |
|
Greg Alexander
|
cbee2a1b67
|
if there is no authorized_keys file, generate a single-use password
|
2016-10-16 18:17:01 -04:00 |
|
Greg Alexander
|
73d4406ee1
|
automatically restart sshd if the system kills it (or it crashes). but
don't restart it if it dies twice within 10 seconds.
only access sshd_pid (et al) from a few select spots now, with proper
synchronization.
|
2016-07-04 20:37:54 -04:00 |
|
Greg Alexander
|
2a7b7465fa
|
remove -Wall on just the dropbear component, because the coding style for
dropbear is sloppy enough that we would require a bunch of changes, and
that would just complicate future merges.
|
2016-06-18 16:02:02 -04:00 |
|
Greg Alexander
|
20e8113f28
|
build with -Wall
|
2016-06-18 15:31:29 -04:00 |
|
Greg Alexander
|
0a033800b6
|
for the rsync/supersu buffering hack, limit the total buffer depth to 1MB
so that it doesn't cause memory exhaustion in extreme cases
|
2016-06-10 16:05:32 -04:00 |
|
Greg Alexander
|
0062f2794a
|
add #define HAVE_GAI_STRERROR, because we do, and it hsould be slightly
more complete..
|
2015-11-23 08:17:17 -05:00 |
|
Greg Alexander
|
a916ac5c08
|
add 'buffersu' program to wrap rsync and make sure there is no wedging
when SuperSU is combined with rsync
|
2015-06-20 13:52:34 -04:00 |
|
Greg Alexander
|
c8d1c356d1
|
build static binaries so that we don't run into lollipop's requirement
for "PIE" executables
|
2014-12-29 16:19:16 -05:00 |
|
Greg Alexander
|
42fd4dd266
|
don't build zlib for dropbear, it can use the android system zlib
|
2014-12-22 07:54:26 -05:00 |
|
Greg Alexander
|
1e212e3cec
|
switch rsync over to using its own internal zlib
|
2014-12-22 07:52:17 -05:00 |
|
Greg Alexander
|
bb347ffffe
|
now rsync builds (untested)
|
2014-12-21 22:24:28 -05:00 |
|
Greg Alexander
|
7a66cd87b9
|
added all of the source files needed for sftp-server
|
2014-12-21 17:41:19 -05:00 |
|
Greg Alexander
|
e53d852b98
|
add sftp-server to build even though it won't build yet...
|
2014-12-21 15:58:16 -05:00 |
|
Greg Alexander
|
aa9cbca1ed
|
enable building and using zlib -- quite painless!
|
2014-12-21 15:16:00 -05:00 |
|
Greg Alexander
|
7f0a8a63c0
|
build scp as a separate executable
|
2014-12-21 14:58:24 -05:00 |
|
Greg Alexander
|
93760bfb7b
|
intercept attempts to execute "scp", and redirect them to the builtin scp
|
2014-12-20 20:06:02 -05:00 |
|
Greg Alexander
|
253c468b3a
|
close all the android system fds when starting the dropbear server
|
2014-12-20 15:50:46 -05:00 |
|
Greg Alexander
|
3112a7ecb3
|
remove explicit "0.0.0.0" specification on -p option because it turns out
the "tcp6" listener that results accepts ipv4 after all
|
2014-12-17 22:52:52 -05:00 |
|
Greg Alexander
|
8a1bc2c4e0
|
made the JNI methods static because they didn't use this anyways
|
2014-12-17 22:48:38 -05:00 |
|
Greg Alexander
|
5df0610f5c
|
implement the extra dropbear commandline options
|
2014-12-17 22:46:04 -05:00 |
|
Greg Alexander
|
1d79555a2f
|
todo
|
2014-12-17 08:58:21 -05:00 |
|
Greg Alexander
|
c222b4b074
|
use configuration values instead of getpwnam()
|
2014-12-16 23:06:04 -05:00 |
|
Greg Alexander
|
ff446269b3
|
use ptmx
|
2014-12-16 22:29:54 -05:00 |
|
Greg Alexander
|
5902ab0952
|
tell dropbear not to fork into the background, because we've already
forked before calling it...
|
2014-12-16 18:49:00 -05:00 |
|
Greg Alexander
|
6d872af030
|
listen to "0.0.0.0:port" because otherwise it seems to default to ipv6 (??)
|
2014-12-16 17:56:47 -05:00 |
|
Greg Alexander
|
9ea9717624
|
add -R for DROPBEAR_DELAY_HOSTKEY
|
2014-12-16 17:51:24 -05:00 |
|
Greg Alexander
|
8a8b4c3acb
|
fix typo hiding argv
|
2014-12-16 17:31:14 -05:00 |
|
Greg Alexander
|
304044bc05
|
disable syslog so we get the error messages on stderr
|
2014-12-16 17:28:01 -05:00 |
|
Greg Alexander
|
3f721ae740
|
add conf_path_file() function to generate "/sdcard/ssh/foo" style filenames
|
2014-12-16 17:27:43 -05:00 |
|
Greg Alexander
|
0c939b5b24
|
a little note in the .err file to indicate what's happening...
|
2014-12-16 17:14:01 -05:00 |
|
Greg Alexander
|
58eefb02b9
|
add something to wait for the forked process to die, so it doesn't become
a zombie
|
2014-12-16 17:07:26 -05:00 |
|
Greg Alexander
|
b88f4f1db0
|
ack, stupid typo
|
2014-12-16 16:52:54 -05:00 |
|
Greg Alexander
|
f0dcb8b2c0
|
pass '-p <portno>' on the virtual commandline
|
2014-12-16 16:34:10 -05:00 |
|
Greg Alexander
|
447ffa0b8f
|
stderr output should now hopefully go to /sdcard/ssh/dropbear.err instead
of the bit bucket
|
2014-12-16 16:24:01 -05:00 |
|
Greg Alexander
|
bfa3c99dc0
|
actually call main...
|
2014-12-16 16:13:04 -05:00 |
|
Greg Alexander
|
a9ca75accc
|
communicate the preferences to the C code
|
2014-12-16 15:50:30 -05:00 |
|
Greg Alexander
|
9cac7ed132
|
make sshd_pid static
|
2014-12-16 11:19:26 -05:00 |
|
Greg Alexander
|
e1d43c3208
|
first draft of rough JNI interface
|
2014-12-16 10:34:10 -05:00 |
|
Greg Alexander
|
52dce6c256
|
disable ZLIB
|
2014-12-14 16:44:27 -05:00 |
|