SHA256
1
0
forked from pool/systemd
Dr. Werner Fink 2014-10-21 11:05:00 +00:00 committed by Git OBS Bridge
parent 8d7204bed6
commit cb48c4bccb
3 changed files with 36 additions and 1 deletions

View File

@ -1,7 +1,8 @@
--- ---
src/core/dbus.c | 2 +- src/core/dbus.c | 2 +-
src/libsystemd/sd-bus/bus-util.h | 9 +++++++++ src/libsystemd/sd-bus/bus-util.h | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-) src/login/pam-module.c | 4 ++--
3 files changed, 12 insertions(+), 3 deletions(-)
--- src/core/dbus.c --- src/core/dbus.c
+++ src/core/dbus.c 2014-10-17 09:52:47.227838182 +0000 +++ src/core/dbus.c 2014-10-17 09:52:47.227838182 +0000
@ -37,3 +38,23 @@
#define _cleanup_bus_message_unref_ _cleanup_(sd_bus_message_unrefp) #define _cleanup_bus_message_unref_ _cleanup_(sd_bus_message_unrefp)
#define _cleanup_bus_creds_unref_ _cleanup_(sd_bus_creds_unrefp) #define _cleanup_bus_creds_unref_ _cleanup_(sd_bus_creds_unrefp)
#define _cleanup_bus_error_free_ _cleanup_(sd_bus_error_free) #define _cleanup_bus_error_free_ _cleanup_(sd_bus_error_free)
--- src/login/pam-module.c
+++ src/login/pam-module.c 2014-10-21 10:48:20.129001984 +0000
@@ -213,7 +213,7 @@ _public_ PAM_EXTERN int pam_sm_open_sess
*seat = NULL,
*type = NULL, *class = NULL,
*class_pam = NULL, *type_pam = NULL, *cvtnr = NULL, *desktop = NULL;
- _cleanup_bus_unref_ sd_bus *bus = NULL;
+ _cleanup_bus_close_unref_ sd_bus *bus = NULL;
int session_fd = -1, existing, r;
bool debug = false, remote;
struct passwd *pw;
@@ -517,7 +517,7 @@ _public_ PAM_EXTERN int pam_sm_close_ses
int argc, const char **argv) {
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
- _cleanup_bus_unref_ sd_bus *bus = NULL;
+ _cleanup_bus_close_unref_ sd_bus *bus = NULL;
const void *existing = NULL;
const char *id;
int r;

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 21 11:03:31 UTC 2014 - werner@suse.de
- Modify patch avoid-leaking-socket-descriptors.patch to close
file descriptors for incomming connections in pam module in case
of short memory.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 20 14:10:47 UTC 2014 - werner@suse.de Mon Oct 20 14:10:47 UTC 2014 - werner@suse.de

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Oct 21 11:03:31 UTC 2014 - werner@suse.de
- Modify patch avoid-leaking-socket-descriptors.patch to close
file descriptors for incomming connections in pam module in case
of short memory.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 20 14:10:47 UTC 2014 - werner@suse.de Mon Oct 20 14:10:47 UTC 2014 - werner@suse.de