Cleaner environment for dpkg execution

Bug #1996177 reported by Julian Andres Klode
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

APT currently launches dpkg in the same environment as it is launched in leaking all sorts of environment variables to it, only overriding PATH with a sensible default.

This is suboptimal, apt should clean the environment more thoroughly or populate a clean environment from scratch.

Questions to answer:

* Perhaps it can reuse systemd or sudo or pam mechanisms?
* If not, what can we copy/pass-through? e.g. TERM needs to be kept the same.
* What to do about hooks
* umask(022) before executing dpkg (anything?), also need correct umask for lists for sure.

Changed in apt (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
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.