]> git.saurik.com Git - apt.git/commitdiff
disable privilege dropping for rsh/ssh method by default
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 28 Nov 2015 15:09:42 +0000 (16:09 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 28 Nov 2015 15:09:42 +0000 (16:09 +0100)
ssh expects various configuration bits to be usable like known hosts,
possibly keys and co. Setting this up needs some user work for probably
not a whole lot of benefits, so instead of forcing it upon users on
upgrade disable dropping for it by default.

Closes: 806511
methods/rsh.cc

index 9d82a99e3dd8aa2e366bebec11ce87d7346b8fd8..4d133951f0bd85d8b2e1ffad5544cc76c29b1e2f 100644 (file)
@@ -398,6 +398,10 @@ RSHMethod::RSHMethod(std::string const &pProg) : aptMethod(pProg.c_str(),"1.0",S
 // ---------------------------------------------------------------------
 bool RSHMethod::Configuration(std::string Message)
 {
+   // enabling privilege dropping for this method requires configuration…
+   // â€¦ which is otherwise lifted straight from root, so use it by default.
+   _config->Set(std::string("Binary::") + Prog + "::APT::Sandbox::User", "");
+
    if (aptMethod::Configuration(Message) == false)
       return false;