Farhan/openssh
Revision | e7f7ce93fb5b6c8898af59d341477ee734417d8b (tree) |
---|---|
Time | 2016-06-11 07:39:24 |
Author | Greg Hartman <ghartman@goog...> |
Commiter | Greg Hartman |
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
@@ -125,8 +125,9 @@ LOCAL_MODULE := libssh | ||
125 | 125 | LOCAL_CFLAGS+=-O3 -Wno-unused-parameter |
126 | 126 | |
127 | 127 | 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)\" | |
130 | 131 | endif |
131 | 132 | |
132 | 133 | include $(BUILD_SHARED_LIBRARY) |
@@ -629,7 +629,7 @@ getpwnamallow(const char *user) | ||
629 | 629 | aix_setauthdb(user); |
630 | 630 | #endif |
631 | 631 | |
632 | -#ifdef ANDROID_GCE | |
632 | +#if defined(ANDROID) | |
633 | 633 | // Android has a fixed set of users. Any incoming user that we can't |
634 | 634 | // identify should be authenticated as the shell user. |
635 | 635 | if (strcmp(user, "root") && strcmp(user, "shell")) { |