sudo clean environment change broke update-manager ssh detection

Bug #301787 reported by Michael Vogt
2
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Binary package hint: update-manager

Update-manager used to be able to detect if it is running under ssh via the SSH_* environment. This is no longer possible now that sudo cleans out the entire environment. A new mechanism should be searched or SSH_{TTY ,CLIENT,CONNECTION} be whitelisted in the sudo args.

Michael Vogt (mvo)
Changed in update-manager:
importance: Undecided → Medium
milestone: none → jaunty-alpha-2
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

As per our discussion, I recommend looking at wtmp, either by calling "who -m" or the corresponding libc functions (getutent, etc, see "man wtmp").

Revision history for this message
Michael Vogt (mvo) wrote :

command line "who -m" or c-function getutxent should help

Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.95.2

---------------
update-manager (1:0.95.2) jaunty; urgency=low

  * DistUpgrade/DistUpgradeQuirks.py:
    - check the support of fglrx against the current
      PCI card (LP: #284408)
  * DistUpgrade/xorg_fix_intrepid.py:
    - do not rewrite multiseat configs (LP: #292774)
  * UpdateManager/Common/MyCache.py,
    UpdateManager/Common/UpdateList.py:
    - move the cache,updatelist implementation out into
      its own file
  * fix free space check on regular update-manager
    invocations (LP: #105113)
  * debian/rules
    - remove the arch-build target
  * DistUpgrade/DistUpgradeController.py:
    - improvements to the sources.list rewriting, better tests
    - when rewriting sources.list check for inconsistencies between what
      components are enabled in intrepid vs intrepid-updates and
      intrepid-security and automatically enable missing ones for
      intrepid-updates and intrepid-security
    - new test if the upgrade is run from a remote
      login (LP: #301787)

 -- Michael Vogt <email address hidden> Mon, 15 Dec 2008 10:39:27 +0100

Changed in update-manager:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.