summaryrefslogtreecommitdiff
path: root/cmdline/apt-internal-solver.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-11 15:31:38 +0200
committerMichael Vogt <mvo@debian.org>2014-06-11 15:31:38 +0200
commitfc1a78d8e9b958f3d65fe1c03494d785314f9816 (patch)
tree09b61bfae82e32d45db8e264bb3a15f947ca8b76 /cmdline/apt-internal-solver.cc
parenteea0f3a6197dba565c5df349ed06c0a70b49b77f (diff)
DropPrivs in the solvers (just to be on the safe side)
Diffstat (limited to 'cmdline/apt-internal-solver.cc')
-rw-r--r--cmdline/apt-internal-solver.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmdline/apt-internal-solver.cc b/cmdline/apt-internal-solver.cc
index e4cdf6381..0cac12da2 100644
--- a/cmdline/apt-internal-solver.cc
+++ b/cmdline/apt-internal-solver.cc
@@ -74,6 +74,9 @@ int main(int argc,const char *argv[]) /*{{{*/
{'o',"option",0,CommandLine::ArbItem},
{0,0,0,0}};
+ // we really don't need anything
+ DropPrivs();
+
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||
CmdL.Parse(argc,argv) == false) {