diff --git a/SOURCES/polkit-0.115-jsauthority-memleak.patch b/SOURCES/polkit-0.115-jsauthority-memleak.patch new file mode 100644 index 0000000..f356cc1 --- /dev/null +++ b/SOURCES/polkit-0.115-jsauthority-memleak.patch @@ -0,0 +1,19 @@ +commit 28e3a6653d8c3777b07e0128a0d97d46e586e311 +Author: Jan Rybar +Date: Tue Oct 8 13:28:18 2019 +0000 + + jsauthority: Fix two minor memory leaks + +diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp +index 9b752d1..e97b8aa 100644 +--- a/src/polkitbackend/polkitbackendjsauthority.cpp ++++ b/src/polkitbackend/polkitbackendjsauthority.cpp +@@ -567,6 +567,8 @@ polkit_backend_js_authority_finalize (GObject *object) + g_strfreev (authority->priv->rules_dirs); + + delete authority->priv->ac; ++ delete authority->priv->js_global; ++ delete authority->priv->js_polkit; + + JS_DestroyContext (authority->priv->cx); + /* JS_ShutDown (); */ diff --git a/SOURCES/polkit-0.115-pkttyagent-tcsaflush-batch-erase.patch b/SOURCES/polkit-0.115-pkttyagent-tcsaflush-batch-erase.patch new file mode 100644 index 0000000..3dec108 --- /dev/null +++ b/SOURCES/polkit-0.115-pkttyagent-tcsaflush-batch-erase.patch @@ -0,0 +1,12 @@ +diff -up ./src/programs/pkttyagent.c.ori ./src/programs/pkttyagent.c +--- ./src/programs/pkttyagent.c.ori 2019-09-27 14:14:35.096310576 +0200 ++++ ./src/programs/pkttyagent.c 2019-09-27 14:14:56.988586737 +0200 +@@ -55,7 +55,7 @@ static void tty_handler(int signal) + + if (tty_flags_saved) + { +- tcsetattr (fileno (tty), TCSAFLUSH, &ts); ++ tcsetattr (fileno (tty), TCSADRAIN, &ts); + } + + kill(getpid(), signal); diff --git a/SPECS/polkit.spec b/SPECS/polkit.spec index 22adb07..9f22b90 100644 --- a/SPECS/polkit.spec +++ b/SPECS/polkit.spec @@ -6,7 +6,7 @@ Summary: An authorization framework Name: polkit Version: 0.115 -Release: 9%{?dist} +Release: 11%{?dist} License: LGPLv2+ URL: http://www.freedesktop.org/wiki/Software/polkit Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz @@ -23,6 +23,8 @@ Patch6: polkit-0.115-CVE-2019-6133.patch Patch7: polkit-0.115-pkttyagent-tty-echo-off-on-fail.patch Patch8: polkit-0.115-allow-uid-of-1.patch Patch9: polkit-0.115-move-to-mozjs60.patch +Patch10: polkit-0.115-jsauthority-memleak.patch +Patch11: polkit-0.115-pkttyagent-tcsaflush-batch-erase.patch BuildRequires: gcc-c++ @@ -188,6 +190,14 @@ exit 0 %{_libdir}/girepository-1.0/*.typelib %changelog +* Mon Nov 04 2019 Jan Rybar - 0.115-11 +- pkttyagent: resetting terminal erases rest of input line +- Resolves: rhbz#1757853 + +* Tue Oct 29 2019 Jan Rybar - 0.115-10 +- Fix of jasuthority memleak +- Resolves: rhbz#1745918 + * Tue Sep 10 2019 Jan Rybar - 0.115-9 - Rebuild to reflect mozjs60 s390 abi change - Related: rhbz#1746889