From 10ca16db2e1acea8244c25ba2ba5ebb22716193f25af812c964e192692cf76e5 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 21 Oct 2014 11:05:00 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=803 --- avoid-leaking-socket-descriptors.patch | 23 ++++++++++++++++++++++- systemd-mini.changes | 7 +++++++ systemd.changes | 7 +++++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/avoid-leaking-socket-descriptors.patch b/avoid-leaking-socket-descriptors.patch index f9c8548..ec23fd5 100644 --- a/avoid-leaking-socket-descriptors.patch +++ b/avoid-leaking-socket-descriptors.patch @@ -1,7 +1,8 @@ --- src/core/dbus.c | 2 +- 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 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_creds_unref_ _cleanup_(sd_bus_creds_unrefp) #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; diff --git a/systemd-mini.changes b/systemd-mini.changes index c6ee658..7272de7 100644 --- a/systemd-mini.changes +++ b/systemd-mini.changes @@ -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 diff --git a/systemd.changes b/systemd.changes index c6ee658..7272de7 100644 --- a/systemd.changes +++ b/systemd.changes @@ -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