• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Farhan/openssh


Commit MetaInfo

Revisione7f7ce93fb5b6c8898af59d341477ee734417d8b (tree)
Time2016-06-11 07:39:24
AuthorGreg Hartman <ghartman@goog...>
CommiterGreg Hartman

Log Message

Move away from GLOBAL_CFLAGS for ssh configuration

Later branches will not support GLOBAL_CFLAGS.
This change turns on account mapping for all Android builds.
It allows SSHDIR to be set in BoardConfig.mk

Bug: 29277511

Change-Id: Ic1411b97468d61a919763db6d42253fdf148df79

Change Summary

Incremental Difference

--- a/Android.mk
+++ b/Android.mk
@@ -125,8 +125,9 @@ LOCAL_MODULE := libssh
125125 LOCAL_CFLAGS+=-O3 -Wno-unused-parameter
126126
127127 LOCAL_CFLAGS += -DGCE_PLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
128-ifneq ($(filter gce_x86 calypso, $(TARGET_DEVICE)),)
129-LOCAL_CFLAGS += -DANDROID_GCE -DSSHDIR=\"/var/run/ssh\"
128+
129+ifneq (,$(SSHDIR))
130+LOCAL_CFLAGS += -DSSHDIR=\"$(SSHDIR)\"
130131 endif
131132
132133 include $(BUILD_SHARED_LIBRARY)
--- a/auth.c
+++ b/auth.c
@@ -629,7 +629,7 @@ getpwnamallow(const char *user)
629629 aix_setauthdb(user);
630630 #endif
631631
632-#ifdef ANDROID_GCE
632+#if defined(ANDROID)
633633 // Android has a fixed set of users. Any incoming user that we can't
634634 // identify should be authenticated as the shell user.
635635 if (strcmp(user, "root") && strcmp(user, "shell")) {