summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2019-04-25 10:18:40 +0000
committerSimon McVittie <smcv@collabora.com>2019-04-25 10:18:40 +0000
commit96991501954b0924bcd8712d3269c1f5188968bb (patch)
treed42d32d3124cbde2ba1ec2f26e7f875602a3378a /bus
parent6ee63e3a70f15aa8d32c407faf99e927ab9ce56a (diff)
parent7eacbfece70f16bb54d0f3ac51f87ae398759ef5 (diff)
downloaddbus-96991501954b0924bcd8712d3269c1f5188968bb.tar.gz
Merge branch 'rlimit-nofile' into 'master'
bus: Try to raise soft fd limit to match hard limit See merge request dbus/dbus!103 Reviewed-by: @poettering [smcv: Correct a comment] Reviewed-by: @pwithnall
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bus/bus.c b/bus/bus.c
index ca48b4bb..3242e33f 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -716,11 +716,11 @@ raise_file_descriptor_limit (BusContext *context)
/* We used to compute a suitable rlimit based on the configured number
* of connections, but that breaks down as soon as we allow fd-passing,
* because each connection is allowed to pass 64 fds to us, and if
- * they all did, we'd hit kernel limits. We now hard-code 64k as a
- * good limit, like systemd does: that's enough to avoid DoS from
- * anything short of multiple uids conspiring against us.
+ * they all did, we'd hit kernel limits. We now hard-code a good
+ * limit that is enough to avoid DoS from anything short of multiple
+ * uids conspiring against us, much like systemd does.
*/
- if (!_dbus_rlimit_raise_fd_limit_if_privileged (65536, &error))
+ if (!_dbus_rlimit_raise_fd_limit (&error))
{
bus_context_log (context, DBUS_SYSTEM_LOG_WARNING,
"%s: %s", error.name, error.message);