[Bug 1996177] [NEW] Cleaner environment for dpkg execution
Launchpad Bug Tracker
1996177 at bugs.launchpad.net
Thu Nov 10 11:53:04 UTC 2022
You have been subscribed to a public bug by Julian Andres Klode (juliank):
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.
** Affects: apt (Ubuntu)
Importance: Medium
Status: Triaged
--
Cleaner environment for dpkg execution
https://bugs.launchpad.net/bugs/1996177
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.
More information about the foundations-bugs
mailing list