summaryrefslogtreecommitdiff
path: root/doc/examples
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-10-20 17:14:31 +0200
committerJulian Andres Klode <jak@debian.org>2025-10-20 17:16:45 +0200
commit6aca3716f051b5b6bff63d51fff68b9c7ebc7474 (patch)
treecd51616b1f6b42c7d3e53a39f1400e292b6ea476 /doc/examples
parent86be82f9877e29cb27de98c8680026df28e99af4 (diff)
ExecFork: Use close_range() if available
Use close_range() if we have it in preference to iterating over /proc/self/fd and falling back to closing all possible fds. This builds sets of ranges to close that take into account the APT::Keep-Fds vector, and a test case is provided to ensure correctness of the splitting logic. Preference is given to close_range() over /proc as in the optimal case, this results in a single system call!
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/configure-index1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/configure-index b/doc/examples/configure-index
index c36f922b6..65b5032bc 100644
--- a/doc/examples/configure-index
+++ b/doc/examples/configure-index
@@ -642,6 +642,7 @@ APT::FTPArchive::release
Version "<STRING>";
};
+Debug::CloseRange "<BOOL>";
Debug::NoDropPrivs "<BOOL>";
APT::Sandbox
{