Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package iio-sensor-proxy for
openSUSE:Factory checked in at 2025-02-11 21:20:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/iio-sensor-proxy (Old)
and /work/SRC/openSUSE:Factory/.iio-sensor-proxy.new.19470 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "iio-sensor-proxy"
Tue Feb 11 21:20:47 2025 rev:24 rq:1244832 version:3.6
Changes:
--------
--- /work/SRC/openSUSE:Factory/iio-sensor-proxy/iio-sensor-proxy.changes
2023-08-01 14:15:27.735463807 +0200
+++
/work/SRC/openSUSE:Factory/.iio-sensor-proxy.new.19470/iio-sensor-proxy.changes
2025-02-11 21:21:07.609578957 +0100
@@ -1,0 +2,14 @@
+Mon Feb 10 10:28:26 UTC 2025 - Atri Bhattacharya <[email protected]>
+
+- Add iio-sensor-proxy-compass-check-claim-perm.patch: Avoid
+ unauthenticated permissions for compass; patch taken from
+ upstream merge request (bsc#1236290).
+
+-------------------------------------------------------------------
+Thu Jan 23 03:39:45 UTC 2025 - Atri Bhattacharya <[email protected]>
+
+- Update to version 3.6:
+ * Drop requirement of geoclue user for compass in README.
+ * Evaluate polling drivers before buffering drivers.
+
+-------------------------------------------------------------------
Old:
----
iio-sensor-proxy-3.5.tar.bz2
New:
----
iio-sensor-proxy-3.6.tar.bz2
iio-sensor-proxy-compass-check-claim-perm.patch
BETA DEBUG BEGIN:
New:
- Add iio-sensor-proxy-compass-check-claim-perm.patch: Avoid
unauthenticated permissions for compass; patch taken from
BETA DEBUG END:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ iio-sensor-proxy.spec ++++++
--- /var/tmp/diff_new_pack.a3pEIj/_old 2025-02-11 21:21:09.629662288 +0100
+++ /var/tmp/diff_new_pack.a3pEIj/_new 2025-02-11 21:21:09.637662618 +0100
@@ -1,7 +1,7 @@
#
# spec file for package iio-sensor-proxy
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,15 @@
Name: iio-sensor-proxy
-Version: 3.5
+Version: 3.6
Release: 0
Summary: Proxy for IIO and input subsystems
License: GPL-3.0-only
Group: System/Monitoring
URL: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
+# PATCH-FIX-UPSTREAM iio-sensor-proxy-compass-check-claim-perm.patch
bsc#1236290 [email protected] -- avoid unauthenticated permissions for
compass
+Patch0:
https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/merge_requests/393.patch#/iio-sensor-proxy-compass-check-claim-perm.patch
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
@@ -49,7 +51,7 @@
This package contains the documentation for %{name}.
%prep
-%setup -q
+%autosetup -p1
%build
%meson -Dgtk-tests=false \
++++++ iio-sensor-proxy-3.5.tar.bz2 -> iio-sensor-proxy-3.6.tar.bz2 ++++++
++++ 1960 lines of diff (skipped)
++++++ iio-sensor-proxy-compass-check-claim-perm.patch ++++++
>From ff71a7f1e5d76885138c6df71083b89121884770 Mon Sep 17 00:00:00 2001
From: Dylan Van Assche <[email protected]>
Date: Sun, 9 Feb 2025 18:32:23 +0100
Subject: [PATCH] iio-sensor-proxy: check claim-permission for compass too
Fixes https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/405
---
src/iio-sensor-proxy.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/iio-sensor-proxy.c b/src/iio-sensor-proxy.c
index 02d9ba5..50b4b45 100644
--- a/src/iio-sensor-proxy.c
+++ b/src/iio-sensor-proxy.c
@@ -636,6 +636,7 @@ handle_compass_method_call (GDBusConnection
*connection,
gpointer user_data)
{
SensorData *data = user_data;
+ g_autoptr(GError) error = NULL;
if (g_strcmp0 (method_name, "ClaimCompass") != 0 &&
g_strcmp0 (method_name, "ReleaseCompass") != 0) {
@@ -647,6 +648,11 @@ handle_compass_method_call (GDBusConnection
*connection,
return;
}
+ if (!check_claim_permission (data, sender, &error)) {
+ g_dbus_method_invocation_return_gerror (invocation, error);
+ return;
+ }
+
handle_generic_method_call (data, sender, object_path,
interface_name, method_name,
parameters, invocation,
DRIVER_TYPE_COMPASS);
--
GitLab