summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2025-01-01 14:40:40 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2025-01-01 14:41:50 +0100
commitda74672bca68d227cdda903315893e969b4f48c1 (patch)
tree2c48a05582425e6b20a9d3e175b420a5f6956198 /methods/http.cc
parent44c378faa2b56ebeae7473bec2afe7c283acec75 (diff)
http: seccomp: Allow reading directories
This is needed by OpenSSL. Closes: #1091351
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 678ce3952..3574bcad5 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1024,7 +1024,7 @@ BaseHttpMethod::DealWithHeadersResult HttpMethod::DealWithHeaders(FetchResult &R
/*}}}*/
HttpMethod::HttpMethod(std::string &&pProg) : BaseHttpMethod(std::move(pProg), "1.2", Pipeline | SendConfig | SendURIEncoded) /*{{{*/
{
- SeccompFlags = aptMethod::BASE | aptMethod::NETWORK;
+ SeccompFlags = aptMethod::BASE | aptMethod::NETWORK | aptMethod::DIRECTORY;
auto addName = std::inserter(methodNames, methodNames.begin());
if (Binary != "http")