orion / rpms / dbus

Forked from rpms/dbus a year ago
Clone

Blame SOURCES/0001-bus-raise-fd-limits-before-dropping-privs.patch

275029
From 8e3c46c33f32290bc2f205de62a7d9ba01994f72 Mon Sep 17 00:00:00 2001
275029
From: David King <dking@redhat.com>
275029
Date: Wed, 7 Feb 2018 14:37:24 +0000
275029
Subject: [PATCH] bus: raise fd limits before dropping privs
275029
275029
https://bugzilla.redhat.com/show_bug.cgi?id=1529044
275029
---
275029
 bus/bus.c | 5 +++++
275029
 1 file changed, 5 insertions(+)
275029
275029
diff --git a/bus/bus.c b/bus/bus.c
275029
index a6f8db47..4b922a89 100644
275029
--- a/bus/bus.c
275029
+++ b/bus/bus.c
275029
@@ -940,6 +940,11 @@ bus_context_new (const DBusString *confi
275029
    */
275029
   if (context->user != NULL)
275029
     {
275029
+      /* Raise the file descriptor limits before dropping the privileges
275029
+       * required to do so.
275029
+       */
275029
+      raise_file_descriptor_limit (context);
275029
+
275029
       if (!_dbus_change_to_daemon_user (context->user, error))
275029
 	{
275029
 	  _DBUS_ASSERT_ERROR_IS_SET (error);
275029
-- 
275029
2.14.3