Sync from SUSE:SLFO:Main iio-sensor-proxy revision b000a21a87cb4b72505e5544a0473bf9

This commit is contained in:
2025-05-19 19:39:20 +02:00
parent 3cdfe8538f
commit 37d5e83675
5 changed files with 18 additions and 43 deletions

BIN
iio-sensor-proxy-3.6.tar.bz2 (Stored with Git LFS)

Binary file not shown.

BIN
iio-sensor-proxy-3.7.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,37 +0,0 @@
From ff71a7f1e5d76885138c6df71083b89121884770 Mon Sep 17 00:00:00 2001
From: Dylan Van Assche <me@dylanvanassche.be>
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

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Mar 27 22:03:57 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 3.7:
+ This update fixes a regression of 3.6 regarding the fallback
for buffer sensors with and without triggers.
+ Do not hardcode trigger names.
+ Enable ring buffers only when sensor is claimed.
+ Confirm if buffer is usable before using it.
+ Fix doublefree in input-proximity driver.
- Drop iio-sensor-proxy-compass-check-claim-perm.patch: Fixed
upstream.
-------------------------------------------------------------------
Mon Feb 10 10:28:26 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -17,15 +17,14 @@
Name: iio-sensor-proxy
Version: 3.6
Version: 3.7
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 badshah400@gmail.com -- 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