sudo clean environment change broke update-manager ssh detection
Bug #301787 reported by
Michael Vogt
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.
Changed in update-manager: | |
importance: | Undecided → Medium |
milestone: | none → jaunty-alpha-2 |
status: | New → Triaged |
Changed in update-manager: | |
assignee: | nobody → mvo |
status: | Triaged → Fix Committed |
To post a comment you must log in.
As per our discussion, I recommend looking at wtmp, either by calling "who -m" or the corresponding libc functions (getutent, etc, see "man wtmp").