diff --git a/avoid-leaking-socket-descriptors.patch b/avoid-leaking-socket-descriptors.patch index f9c85484..ec23fd5c 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 c6ee6588..7272de71 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 c6ee6588..7272de71 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