summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-18 10:47:19 +0200
committerMichael Vogt <mvo@debian.org>2014-06-18 10:47:57 +0200
commit17091f2f33de16c2dae501e7868f7aec4fc3452f (patch)
treef3eed549bbcb50a46d7c10aa7c3a048cf7fee166 /cmdline
parentb6fea8bbe25e3c0312de72c99b0d49c699d02b7b (diff)
parentfc1a78d8e9b958f3d65fe1c03494d785314f9816 (diff)
Merge remote-tracking branch 'mvo/feature/drop-rights' into debian/experimental
Conflicts: apt-pkg/contrib/fileutl.cc apt-pkg/contrib/fileutl.h
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-dump-solver.cc2
-rw-r--r--cmdline/apt-internal-solver.cc3
2 files changed, 5 insertions, 0 deletions
diff --git a/cmdline/apt-dump-solver.cc b/cmdline/apt-dump-solver.cc
index 04e13bde9..424764b3c 100644
--- a/cmdline/apt-dump-solver.cc
+++ b/cmdline/apt-dump-solver.cc
@@ -40,6 +40,8 @@ int main(int argc,const char *argv[]) /*{{{*/
ShowHelp();
return 0;
}
+ // we really don't need anything
+ DropPrivs();
FILE* input = fdopen(STDIN_FILENO, "r");
FILE* output = fopen("/tmp/dump.edsp", "w");
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) {