]> git.saurik.com Git - apt.git/commit - debian/apt.postinst
Drop Privileges to "Debian-apt" in most acquire methods
authorMichael Vogt <mvo@ubuntu.com>
Wed, 24 Sep 2014 14:22:05 +0000 (16:22 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Wed, 24 Sep 2014 14:22:05 +0000 (16:22 +0200)
commit3927c6da48c206b6b251661f44680d9883b4f6b4
tree695aea2c55eb2358a07b9403c28a57a3ca0e585d
parenta1380a5c52062b25c9ed260b721239ed57929503
Drop Privileges to "Debian-apt" in most acquire methods

Add a new "Debian-apt" user that owns the /var/lib/apt/lists
and /var/cache/apt/archive directories. The methods
http, https, ftp, gpgv, gzip switch to this user when they
start.

Thanks to Julian and "ioerror" and tors "switch_id()" code.
apt-pkg/contrib/fileutl.cc
debian/apt.postinst
methods/copy.cc
methods/ftp.cc
methods/gpgv.cc
methods/gzip.cc
methods/http_main.cc
methods/https.cc