[Bug 1267117] Re: adbd does not use pam_env

Launchpad Bug Tracker 1267117 at bugs.launchpad.net
Mon Mar 31 19:34:27 UTC 2014


This bug was fixed in the package android-tools -
4.2.2+git20130218-3ubuntu23

---------------
android-tools (4.2.2+git20130218-3ubuntu23) trusty; urgency=medium

  * Start adbd under a PAM session, such that it has the default system
    locale and environmental variables set. (LP: #1267117)
 -- Dimitri John Ledkov <xnox at ubuntu.com>   Mon, 31 Mar 2014 18:57:22 +0100

** Changed in: android-tools (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to android-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1267117

Title:
  adbd does not use pam_env

Status in “android-tools” package in Ubuntu:
  Fix Released

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/android-tools-adbd.override

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/android-tools/+bug/1267117/+subscriptions



More information about the foundations-bugs mailing list