OSDN Git Service

android-x86/external-openssh.git
8 years agoMake the sshd directory configurable
Greg Hartman [Wed, 28 Oct 2015 01:05:50 +0000 (18:05 -0700)]
Make the sshd directory configurable

Change-Id: I01d674b9a2688f4a1d3e884c2f434bfaad06ac8b

8 years agoDon't chmod /dev/ptmx when allocating a pty on Android.
Greg Hartman [Wed, 29 Jul 2015 22:38:15 +0000 (15:38 -0700)]
Don't chmod /dev/ptmx when allocating a pty on Android.

This resolves an incompatibility with non-root adb.
BUG=22803455

Change-Id: I908923e9ddc04e0ec8de0122eb79486c8b1ae03e

8 years agoam cfb649f1: remove .gce_x86 suffix from ssh output files (post_install_cmd is not...
Keun Soo Yim [Thu, 28 May 2015 19:28:19 +0000 (19:28 +0000)]
am cfb649f1: remove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in jb-mr1 and before).

* commit 'cfb649f16fb638fa1c8c7e4cc229ce547dfa14d6':
  remove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in jb-mr1 and before).

8 years agoremove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in...
Keun Soo Yim [Fri, 15 May 2015 18:32:43 +0000 (11:32 -0700)]
remove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in jb-mr1 and before).

Change-Id: I187386c699f22d80bac4c7f8c1e12ee5a590fb55
(cherry picked from commit 0c94e12da1d82c05a136cb5a0ed71dfe0f8a1b0c)

9 years agoremove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in...
Keun Soo Yim [Fri, 15 May 2015 18:32:43 +0000 (11:32 -0700)]
remove .gce_x86 suffix from ssh output files (post_install_cmd is not supported in jb-mr1 and before).

Change-Id: I187386c699f22d80bac4c7f8c1e12ee5a590fb55

9 years agoUse linux/capability.h in jb-mr1 too
Keun Soo Yim [Fri, 8 May 2015 16:59:41 +0000 (09:59 -0700)]
Use linux/capability.h in jb-mr1 too

Change-Id: Ia24dbd1b452298a3a6780b72497280ec9b912ec3

9 years agocapability used to be under linux, not system
Greg Hartman [Thu, 7 May 2015 17:27:30 +0000 (10:27 -0700)]
capability used to be under linux, not system

Change-Id: Ia04f3f83a237f4cbe636b14f221cffdf9460b3a4

9 years agoRevert "Removed an unused header include"
Keun Soo Yim [Wed, 6 May 2015 18:01:46 +0000 (18:01 +0000)]
Revert "Removed an unused header include"

This reverts commit b5de6ef9f08b6ec91795b2fae6a44eb354985285.

Change-Id: I3d3ac73aaee2bcc99bc8fd490588a76bd698915d

9 years agoRemoved an unused header include
Keun Soo Yim [Tue, 5 May 2015 21:41:41 +0000 (14:41 -0700)]
Removed an unused header include

That file doesn't exist at least jb-gce-dev

Change-Id: I4a3cd97f2ee071ae74cb166baf38057671d76fef

9 years agoAdd platform-dependent config for arc4random
Greg Hartman [Wed, 8 Apr 2015 20:05:08 +0000 (13:05 -0700)]
Add platform-dependent config for arc4random

Change-Id: I50317ca1eed43779352a44d8e02123583df6a4fd

9 years agoexternal/openssh: update to 6.8p1.
Adam Langley [Mon, 30 Mar 2015 21:49:51 +0000 (14:49 -0700)]
external/openssh: update to 6.8p1.

In preparation for some updates to external/openssh to make it work with
BoringSSL, this change updates the code to a recent version. The current
version (5.9p1) is coming up on four years old now.

  * Confirmed that f5c67b478bef9992de9e9ec91ce10af4f6205e0d matches
    OpenSSH 5.9p1 exactly (save for the removal of the scard
    subdirectory).

  * Downloaded openssh-6.8p1.tar.gz (SHA256:
    3ff64ce73ee124480b5bf767b9830d7d3c03bbcb6abe716b78f0192c37ce160e)
    and verified with PGP signature. (I've verified Damien's key in
    person previously.)

  * Applied changes between f5c67b478bef9992de9e9ec91ce10af4f6205e0d and
    OpenSSH 5.9p1 to 6.8p1 and updated the build as best I can. The
    ugliest change is probably the duplication of umac.c to umac128.c
    because Android conditionally compiles that file twice. See the
    comment in those files.

Change-Id: I63cb07a8118afb5a377f116087a0882914cea486

9 years agoAdd prototype for prctl to fix 64 bit build break
Greg Hartman [Fri, 27 Feb 2015 15:55:00 +0000 (07:55 -0800)]
Add prototype for prctl to fix 64 bit build break

Change-Id: I1cda84a412666d5123be274ee0be399d25d86164

9 years agoPut ssh back into the repository
Greg Hartman [Wed, 25 Feb 2015 21:21:06 +0000 (13:21 -0800)]
Put ssh back into the repository

Change-Id: I23324372188fa6ed3f93a32b84365f5df6367590

9 years agoMerge "Remove sshd."
dcashman [Tue, 8 Jul 2014 16:25:09 +0000 (16:25 +0000)]
Merge "Remove sshd."

9 years agoRemove sshd.
dcashman [Mon, 7 Jul 2014 23:20:40 +0000 (16:20 -0700)]
Remove sshd.

This may require changes to other code, such as fastbootd, which relies on this
service.  sshd is not currently, used, however, so this change will force any
such code to be changed.

Bug: 11594902
Change-Id: I07e52008290dab5825be2ad062cbe730fa7dff71

9 years agoMerge "openssh should use its own arc4random."
Elliott Hughes [Sat, 21 Jun 2014 05:01:12 +0000 (05:01 +0000)]
Merge "openssh should use its own arc4random."

9 years agoopenssh should use its own arc4random.
Elliott Hughes [Sat, 21 Jun 2014 04:34:40 +0000 (21:34 -0700)]
openssh should use its own arc4random.

Previously openssh was declaring its own arc4random but accidentally picking
up a lower-quality implementation from libc.

Bug: 14499627
Change-Id: Ie0c4ddb78101a666af3ec3eb9dc03c8fb44f6c4b

9 years agoMerge "Conditionalize RIPEMD references"
Kenny Root [Sat, 21 Jun 2014 01:20:43 +0000 (01:20 +0000)]
Merge "Conditionalize RIPEMD references"

9 years agoConditionalize RIPEMD references
Kenny Root [Sat, 21 Jun 2014 01:16:47 +0000 (18:16 -0700)]
Conditionalize RIPEMD references

This unconditionally includes RIPEMD, but it's the only place in the
Android source code base. Instead of restoring RIPEMD to OpenSSL, just
remove it here.

Change-Id: Ie949f64cef1cb7de39baae3f118f2188e663c875

11 years agoMerge "openssh: use correct header file."
Nick Kralevich [Thu, 28 Feb 2013 22:53:19 +0000 (22:53 +0000)]
Merge "openssh: use correct header file."

11 years agoopenssh: use correct header file.
Nick Kralevich [Thu, 28 Feb 2013 22:10:54 +0000 (14:10 -0800)]
openssh: use correct header file.

Change-Id: Ia0f7247c9ed64ea846ae5b2d26054ceade5686c5

11 years agostart-ssh: force umask to 077
Nick Kralevich [Wed, 30 May 2012 21:44:04 +0000 (14:44 -0700)]
start-ssh: force umask to 077

Change-Id: Ie36338f174f891dee3f531d0b261d58e211d095f

12 years agoMerge remote-tracking branch 'goog/ics-aah-exp'
Mike Lockwood [Wed, 21 Mar 2012 19:57:28 +0000 (12:57 -0700)]
Merge remote-tracking branch 'goog/ics-aah-exp'

12 years agoAdd support for default authorized_keys file
Mike Lockwood [Wed, 4 Jan 2012 15:38:46 +0000 (10:38 -0500)]
Add support for default authorized_keys file

Change-Id: I61954d6a5c8d0c9b34501dcfb13ce38dc07e267a
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAllow root login if ro.debuggable is set (userdebug and eng builds)
Mike Lockwood [Thu, 29 Dec 2011 20:30:07 +0000 (15:30 -0500)]
Allow root login if ro.debuggable is set (userdebug and eng builds)

Change-Id: I4aed01758ca5589a6bf1642e9f2f2894221c82b9
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAdd extra groups and capabilities to shell user
Mike Lockwood [Thu, 29 Dec 2011 19:42:46 +0000 (14:42 -0500)]
Add extra groups and capabilities to shell user

This allows things like logcat, reboot, internet, SD card access, etc. to
work in an ssh shell like it would in an adb shell.

Change-Id: I6c921d9900a09394250c7b1ae0512d1eef3c1187
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoFix path to ssh binary
Mike Lockwood [Thu, 29 Dec 2011 18:50:19 +0000 (13:50 -0500)]
Fix path to ssh binary

Change-Id: Ic58de0027d947e7b0535edb3fef6bd26519655a1
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoMake libssh a shared library
Mike Lockwood [Thu, 29 Dec 2011 18:20:32 +0000 (13:20 -0500)]
Make libssh a shared library

Change-Id: I4452ad6b23b6ce5e69287b09f9e786942638256d
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoStub out ga_init() in android build
Mike Lockwood [Thu, 29 Dec 2011 18:02:47 +0000 (13:02 -0500)]
Stub out ga_init() in android build

Change-Id: I7be8ef7c0425a48500501895c5eabcebcbdf7aa1
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoInitial port of openssh to android
Mike Lockwood [Wed, 28 Dec 2011 19:12:50 +0000 (14:12 -0500)]
Initial port of openssh to android

Operation instructions:
    start from init.rc using start-ssh script
    Add your public key to /data/ssh/authorized_keys
    login with "ssh shell@<ip address>" from another computer on same network

Change-Id: I1085a8b2f2766d4a2a4a70ffaf0352b07c261281
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAdd HAVE_PW_GECOS_IN_PASSWD configuration flag
Mike Lockwood [Wed, 28 Dec 2011 18:59:08 +0000 (13:59 -0500)]
Add HAVE_PW_GECOS_IN_PASSWD configuration flag

Change-Id: I0a1997bfa45966f619f9ec5ffaeb8f9be9f741e9
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoInitial commit of openssh-5.9p1
Mike Lockwood [Wed, 7 Dec 2011 16:17:59 +0000 (08:17 -0800)]
Initial commit of openssh-5.9p1

Change-Id: I991b8d22c9904ed6ced33a096776f4f342af52a8
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAdd support for default authorized_keys file
Mike Lockwood [Wed, 4 Jan 2012 15:38:46 +0000 (10:38 -0500)]
Add support for default authorized_keys file

Change-Id: I23c9f3a1aebaac090db21f55a0ba792a2412206b
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAllow root login if ro.debuggable is set (userdebug and eng builds)
Mike Lockwood [Thu, 29 Dec 2011 20:30:07 +0000 (15:30 -0500)]
Allow root login if ro.debuggable is set (userdebug and eng builds)

Change-Id: I77197e0bf9daa9774db015b0ffb8be519830ee72
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAdd extra groups and capabilities to shell user
Mike Lockwood [Thu, 29 Dec 2011 19:42:46 +0000 (14:42 -0500)]
Add extra groups and capabilities to shell user

This allows things like logcat, reboot, internet, SD card access, etc. to
work in an ssh shell like it would in an adb shell.

Change-Id: I206b8b69fd437c611613c7d81b4a926a941e8030
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoFix path to ssh binary
Mike Lockwood [Thu, 29 Dec 2011 18:50:19 +0000 (13:50 -0500)]
Fix path to ssh binary

Change-Id: Ie1de77e93856d59c85ef87e02dcdd0fd268757a8
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoMake libssh a shared library
Mike Lockwood [Thu, 29 Dec 2011 18:20:32 +0000 (13:20 -0500)]
Make libssh a shared library

Change-Id: I33339938951a2e9f5ff35d523fedd4df0f3a6199
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoStub out ga_init() in android build
Mike Lockwood [Thu, 29 Dec 2011 18:02:47 +0000 (13:02 -0500)]
Stub out ga_init() in android build

Change-Id: I0c68510ece755fc8e8f4a93e9d6f017fc23fcfee
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoInitial port of openssh to android
Mike Lockwood [Wed, 28 Dec 2011 19:12:50 +0000 (14:12 -0500)]
Initial port of openssh to android

Operation instructions:
    start from init.rc using start-ssh script
    Add your public key to /data/ssh/authorized_keys
    login with "ssh shell@<ip address>" from another computer on same network

Change-Id: I3d6ea1de97f332d8dc3739828b8560fa398cbd8d
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoAdd HAVE_PW_GECOS_IN_PASSWD configuration flag
Mike Lockwood [Wed, 28 Dec 2011 18:59:08 +0000 (13:59 -0500)]
Add HAVE_PW_GECOS_IN_PASSWD configuration flag

Change-Id: I2571f00b4b6ba41b7795c8c78c58253e5d0205dd
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoInitial commit of openssh-5.9p1
Mike Lockwood [Wed, 7 Dec 2011 16:17:59 +0000 (08:17 -0800)]
Initial commit of openssh-5.9p1

Change-Id: I8ebb99a5acc541716cfaab5b30bd8f7a86996977
Signed-off-by: Mike Lockwood <lockwood@google.com>
12 years agoInitial empty repository
Anatol Pomazau [Thu, 8 Sep 2011 21:55:08 +0000 (14:55 -0700)]
Initial empty repository