]> git.saurik.com Git - apt.git/commit
reset HOME, USER(NAME), TMPDIR & SHELL in DropPrivileges
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 9 Nov 2016 18:15:01 +0000 (19:15 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 9 Nov 2016 18:33:33 +0000 (19:33 +0100)
commit34b491e735ad47c4805e63f3b83a659b8d10262b
tree733fb32936d1fb4a2ec7230c54addb4bcb58e95f
parent2c30cf43f1c4ab96f3eca849d7eb4923ffed40b1
reset HOME, USER(NAME), TMPDIR & SHELL in DropPrivileges

We can't cleanup the environment like e.g. sudo would do as you usually
want the environment to "leak" into these helpers, but some variables
like HOME should really not have still the value of the root user – it
could confuse the helpers (USER) and HOME isn't accessible anyhow.

Closes: 842877
apt-pkg/contrib/fileutl.cc
debian/tests/run-tests
test/integration/framework
test/integration/skip-apt-dropprivs [new file with mode: 0755]
test/interactive-helper/CMakeLists.txt
test/interactive-helper/aptdropprivs.cc [new file with mode: 0644]