adbd does not use pam_env
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
android-tools (Ubuntu) |
Fix Released
|
Critical
|
Dimitri John Ledkov |
Bug Description
When working with ubuntu-touch the following environment differences are observed:
- login via ssh, locale is set
- login via tty/serial, locale is set
- login adb shell, locale is not set
in fact none of the /etc/environment is sourced/exported, which indicates that PAM environment is not used. I believe adbd should be treated as a full-fledged login-like PAM session, such that e.g. adb shell has correct locale set, etc.
As a local hack, I've now used:
# echo exec su - -c adbd > /etc/init/
such that, at least, adb shell not has all PAM environment variables available.
Please note at the moment we are growing a number of work-arounds across smoke tests runners, and the autopilot tests which workaround the facts that environment across adb shell is incomplete.
Related branches
Changed in android-tools (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: jemjem |
Changed in android-tools (Ubuntu): | |
importance: | High → Critical |
assignee: | nobody → Dimitri John Ledkov (xnox) |
This bug was fixed in the package android-tools - 4.2.2+git201302 18-3ubuntu23
--------------- git20130218- 3ubuntu23) trusty; urgency=medium
android-tools (4.2.2+
* Start adbd under a PAM session, such that it has the default system
locale and environmental variables set. (LP: #1267117)
-- Dimitri John Ledkov <email address hidden> Mon, 31 Mar 2014 18:57:22 +0100