[packages/usermode] Up to 1.114

arekm arekm at pld-linux.org
Sat Mar 14 12:46:37 CET 2026


commit 98f33b1c524a0ef732f5bd7235b9d38143d3fe01
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 14 12:46:31 2026 +0100

    Up to 1.114

 usermode-fix-sast.patch | 29 +++++++++++++++++++++++++++++
 usermode.spec           | 16 +++++++++-------
 2 files changed, 38 insertions(+), 7 deletions(-)
---
diff --git a/usermode.spec b/usermode.spec
index 55585a9..bdb3eea 100644
--- a/usermode.spec
+++ b/usermode.spec
@@ -8,17 +8,18 @@ Summary(fr.UTF-8):	Outils utilisateur
 Summary(pl.UTF-8):	Narzędzia użytkownika
 Summary(tr.UTF-8):	Kullanıcı araçları
 Name:		usermode
-Version:	1.111
-Release:	2
+Version:	1.114
+Release:	1
 License:	GPL v2+
 Group:		Applications/System
-Source0:	https://fedorahosted.org/releases/u/s/usermode/%{name}-%{version}.tar.xz
-# Source0-md5:	28ba510fbd8da9f4e86e57d6c31cff29
+Source0:	https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
+# Source0-md5:	5e1816bedcc2a8195c63d29ba51df61b
 Source1:	config-util
-Patch0:		%{name}-userhelper-format-security.patch
-URL:		https://fedorahosted.org/usermode/
+Patch0:		%{name}-fix-sast.patch
+URL:		https://pagure.io/usermode/
 BuildRequires:	glib2-devel >= 2.0
 BuildRequires:	gtk+2-devel >= 2:2.23
+BuildRequires:	intltool
 BuildRequires:	libblkid-devel
 %{?with_selinux:BuildRequires:	libselinux-devel}
 BuildRequires:	libuser-devel
@@ -83,7 +84,8 @@ zmieniać hasło.
 
 %build
 %configure \
-	%{?with_selinux:--with-selinux}
+	%{?with_selinux:--with-selinux} \
+	--without-fexecve
 %{__make}
 
 %install
diff --git a/usermode-fix-sast.patch b/usermode-fix-sast.patch
new file mode 100644
index 0000000..d6fbc7d
--- /dev/null
+++ b/usermode-fix-sast.patch
@@ -0,0 +1,29 @@
+Fix static analysis issues: memory leak in gsmclient.c (g_get_current_dir
+result not freed) and missing else branch in shvar.c (keyValue leak when
+!newval && !val2 && !val1). From Fedora.
+
+--- usermode-1.114.orig/gsmclient.c	2018-08-15 12:13:18.000000000 +0200
++++ usermode-1.114/gsmclient.c	2026-03-14 12:22:47.007490259 +0100
+@@ -197,8 +197,10 @@
+   /* Default property values (this code assumes we start
+    * with an empty proplist)
+    */
++  gchar *curdir = g_get_current_dir ();
+   push_prop (client, smprop_new_string (GSM_CLIENT_PROPERTY_CURRENT_DIRECTORY,
+-                                        g_get_current_dir (), -1));
++                                        curdir, -1));
++  g_free (curdir);
+ 
+   g_snprintf (pid_str, sizeof (pid_str), "%d", (int) getpid ());
+   push_prop (client, smprop_new_string (GSM_CLIENT_PROPERTY_PROCESS_ID,
+--- usermode-1.114.orig/shvar.c	2021-04-28 11:21:15.000000000 +0200
++++ usermode-1.114/shvar.c	2026-03-14 12:22:55.191812454 +0100
+@@ -347,7 +347,7 @@
+ 	    g_list_free_1(s->current);
+ 	    s->modified = 1;
+ 	    goto bail; /* do not need keyValue */
+-	}
++	} else goto bail;
+ 	goto end;
+     }
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/usermode.git/commitdiff/98f33b1c524a0ef732f5bd7235b9d38143d3fe01



More information about the pld-cvs-commit mailing list