summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2017-10-28 00:01:27 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2018-01-03 19:42:45 +0100
commit04ab37fecaf286f724bef2e0969d2b67ab5ac1b1 (patch)
tree99b25e7a854dc79b8f5398a7c34ea95109ca333e /methods
parent57fa854e4cdb060e87ca265abd5a83364f9fa681 (diff)
require methods to request AuxRequest capability at startup
Allowing a method to request work from other methods is a powerful capability which could be misused or exploited, so to slightly limited the surface let method opt-in into this capability on startup.
Diffstat (limited to 'methods')
-rw-r--r--methods/mirror.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/mirror.cc b/methods/mirror.cc
index ad8867836..ee703aaae 100644
--- a/methods/mirror.cc
+++ b/methods/mirror.cc
@@ -64,7 +64,7 @@ class MirrorMethod : public aptMethod /*{{{*/
void DealWithPendingItems(std::vector<std::string> const &baseuris, MirrorInfo const &info, FetchItem *const Itm, std::function<void()> handler);
public:
- MirrorMethod(std::string &&pProg) : aptMethod(std::move(pProg), "2.0", SingleInstance | Pipeline | SendConfig)
+ MirrorMethod(std::string &&pProg) : aptMethod(std::move(pProg), "2.0", SingleInstance | Pipeline | SendConfig | AuxRequests)
{
SeccompFlags = aptMethod::BASE | aptMethod::DIRECTORY;