commit xdg-desktop-portal for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package xdg-desktop-portal for openSUSE:Leap:15.2 checked in at 2020-04-14 14:19:50 Comparing /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal (Old) and /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.3248 (New) Package is "xdg-desktop-portal" Tue Apr 14 14:19:50 2020 rev:21 rq:792880 version:1.6.0 Changes: --- /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal/xdg-desktop-portal.changes 2020-03-31 07:23:03.162415811 +0200 +++ /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.3248/xdg-desktop-portal.changes 2020-04-14 14:19:51.649224320 +0200 @@ -1,0 +2,16 @@ +Mon Apr 6 11:49:59 UTC 2020 - Antonio Larrosa + +- Add patch from upstream to fix a use-after-free case: + * 0001-Fix-use-after-free-in-xdg_get_app_info_from_pid.patch + +- Add patch from upstream to add AssumedAppArmorLabel key to D-Bus + service files to allow sandboxed processes to activate the portal + services if the sandbox makes use of AppArmor D-Bus mediation + rules that depend on the service's security label: + * 0002-add-AssumedAppArmorLabel-key-to-D-Bus-service-files.patch + +- Add patch from upstream to fix a null pointer usage when no + default handler is set for desired type: + * 0003-Fix-criticals-if-no-default-handler-for-desired-type.patch + +--- New: 0001-Fix-use-after-free-in-xdg_get_app_info_from_pid.patch 0002-add-AssumedAppArmorLabel-key-to-D-Bus-service-files.patch 0003-Fix-criticals-if-no-default-handler-for-desired-type.patch Other differences: -- ++ xdg-desktop-portal.spec ++ --- /var/tmp/diff_new_pack.SUPLfM/_old 2020-04-14 14:19:52.013224591 +0200 +++ /var/tmp/diff_new_pack.SUPLfM/_new 2020-04-14 14:19:52.017224594 +0200 @@ -26,6 +26,9 @@ Source0:%{url}/releases/download/%{version}/%{name}-%{version}.tar.xz # PATCH-FEATURE-UPSTREAM xdg-dp-port-pipewire-3-api.patch -- Port to use new pipewire-3.0 api Patch0: xdg-dp-port-pipewire-3-api.patch +Patch1: 0001-Fix-use-after-free-in-xdg_get_app_info_from_pid.patch +Patch2: 0002-add-AssumedAppArmorLabel-key-to-D-Bus-service-files.patch +Patch3: 0003-Fix-criticals-if-no-default-handler-for-desired-type.patch BuildRequires: libtool BuildRequires: pkgconfig ++ 0001-Fix-use-after-free-in-xdg_get_app_info_from_pid.patch ++ >From 8fbab8933fc4e0e87dbb263c9414dc349fc3cdb8 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 12 Mar 2020 15:01:26 +0100 Subject: [PATCH] utils: Fix use-after-free in xdp_get_app_info_from_pid() This was freeing the value before returning it. This was noticed by jhenstridge in https://github.com/flatpak/xdg-desktop-portal/pull/443 --- src/xdp-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdp-utils.c b/src/xdp-utils.c index 2f5be5c..4f72df1 100644 --- a/src/xdp-utils.c +++ b/src/xdp-utils.c @@ -618,7 +618,7 @@ xdp_get_app_info_from_pid (pid_t pid, if (app_info == NULL) app_info = xdp_app_info_new_host (); - return app_info; + return g_steal_pointer (&app_info); } static XdpAppInfo * ++ 0002-add-AssumedAppArmorLabel-key-to-D-Bus-service-files.patch ++ >From 2a3118ce4a9dc144237ebbfc0147fc535cd23c32 Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Mon, 2 Mar 2020 16:40:22 +0100 Subject: [PATCH] src, document-portal: add AssumedAppArmorLabel key to D-Bus service files This allows sandboxed processes to activate the portal services if the sandbox makes use of AppArmor D-Bus mediation rules that depend on the service's security label. --- document-portal/org.freedesktop.portal.Documents.service.in | 1 + src/org.freedesktop.portal.Desktop.service.in | 1 + 2 files changed, 2 insertions(+) diff --git a/document-portal/org.freedesktop.portal.Documents.service.in b/document-portal/org.freedesktop.portal.Documents.service.in index cf0c1ef..4d0881b 100644 --- a/document-portal/org.freedesktop.portal.Documents.service.in +++ b/document-portal/org.freedesktop.portal.Documents.service.in @@ -2,3 +2,4 @@ Name=org.freedesktop.portal.Documents Exec=@libexecdir@/xdg-document-portal SystemdService=xdg-document-portal.service +AssumedAppArmorLabel=unconfined diff --git a/src/org.freedesktop.portal.Desktop.service.in b/src/org.freedesktop.portal.Desktop.service.in index e017386..2b31f32 100644 --- a/src/org.freedesktop.portal.Desktop.service.in +++ b/src/org.freedesktop.portal.Desktop.service.in @@ -2,3 +2,4 @@ Name=org.freedesktop.portal.Desktop Exec=@libexecdir@/xdg-desktop-portal SystemdService=xdg-desktop-portal.service +AssumedAppArmorLabel=unconfined ++ 0003-Fix-criticals-if-no-default-handler-for-desire
commit xdg-desktop-portal for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package xdg-desktop-portal for openSUSE:Leap:15.2 checked in at 2020-03-31 07:23:01 Comparing /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal (Old) and /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.3160 (New) Package is "xdg-desktop-portal" Tue Mar 31 07:23:01 2020 rev:20 rq:789607 version:1.6.0 Changes: --- /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal/xdg-desktop-portal.changes 2020-02-16 18:26:09.086649868 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.3160/xdg-desktop-portal.changes 2020-03-31 07:23:03.162415811 +0200 @@ -1,0 +2,9 @@ +Fri Feb 21 13:17:51 UTC 2020 - Bjørn Lie + +- Add xdg-dp-port-pipewire-3-api.patch: Port to use new + pipewire-3.0 api. Following this, replace + pkgconfig(libpipewire-2.0) with pkgconfig(libpipewire-3.0) + BuildRequires. Also add libtool BuildRequires and pass autoreconf + as the patch touches the buildsystem. + +--- New: xdg-dp-port-pipewire-3-api.patch Other differences: -- ++ xdg-desktop-portal.spec ++ --- /var/tmp/diff_new_pack.pAWHEl/_old 2020-03-31 07:23:03.582415993 +0200 +++ /var/tmp/diff_new_pack.pAWHEl/_new 2020-03-31 07:23:03.586415995 +0200 @@ -24,7 +24,10 @@ Group: System/Libraries URL:https://github.com/flatpak/xdg-desktop-portal Source0:%{url}/releases/download/%{version}/%{name}-%{version}.tar.xz +# PATCH-FEATURE-UPSTREAM xdg-dp-port-pipewire-3-api.patch -- Port to use new pipewire-3.0 api +Patch0: xdg-dp-port-pipewire-3-api.patch +BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: xmlto BuildRequires: pkgconfig(flatpak) @@ -35,7 +38,7 @@ BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2 -BuildRequires: pkgconfig(libpipewire-0.2) >= 0.2.6 +BuildRequires: pkgconfig(libpipewire-0.3) >= 0.2.90 BuildRequires: pkgconfig(libportal) # Break cycle: we buildrequire flatpak, and flatpak has a requires on xdg-desktop-portal #!BuildIgnore: xdg-desktop-portal @@ -68,6 +71,7 @@ %build export LANG=C.UTF-8 +autoreconf -fiv %configure \ --enable-geoclue \ --enable-pipewire \ ++ xdg-dp-port-pipewire-3-api.patch ++ >From a38901e5e7f835efe7b7a06c55790c8c20bc91a2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 14 Jan 2020 09:37:09 +0100 Subject: [PATCH] PipeWire: update to 0.3 API --- configure.ac | 2 +- src/camera.c | 24 src/pipewire.c| 141 +- src/pipewire.h| 10 ++-- src/screen-cast.c | 98 ++-- 5 files changed, 72 insertions(+), 203 deletions(-) diff --git a/configure.ac b/configure.ac index 89902fa..62d7960 100644 --- a/configure.ac +++ b/configure.ac @@ -97,7 +97,7 @@ AC_ARG_ENABLE(pipewire, [AS_HELP_STRING([--enable-pipewire],[Enable PipeWire support. Needed for screen cast portal])], enable_pipewire=$enableval, enable_pipewire=yes) if test x$enable_pipewire = xyes ; then - PKG_CHECK_MODULES(PIPEWIRE, [libpipewire-0.2 >= 0.2.6]) + PKG_CHECK_MODULES(PIPEWIRE, [libpipewire-0.3 >= 0.2.90]) AC_DEFINE([HAVE_PIPEWIRE],[1], [Define to enable PipeWire support]) fi AM_CONDITIONAL([HAVE_PIPEWIRE],[test "$enable_pipewire" = "yes"]) diff --git a/src/camera.c b/src/camera.c index c2b392c..20fe3aa 100644 --- a/src/camera.c +++ b/src/camera.c @@ -141,7 +141,7 @@ open_pipewire_camera_remote (const char *app_id, GError **error) { PipeWireRemote *remote; - struct spa_dict_item permission_items[1]; + struct pw_permission permission_items[2]; struct pw_properties *pipewire_properties; pipewire_properties = @@ -158,12 +158,12 @@ open_pipewire_camera_remote (const char *app_id, * Hide all existing and future nodes by default. PipeWire will use the * permission store to set up permissions. */ - permission_items[0].key = PW_CORE_PROXY_PERMISSIONS_DEFAULT; - permission_items[0].value = "---"; + permission_items[0] = PW_PERMISSION_INIT (PW_ID_CORE, PW_PERM_RWX); + permission_items[1] = PW_PERMISSION_INIT (PW_ID_ANY, 0); - pw_core_proxy_permissions (pw_remote_get_core_proxy (remote->remote), - &SPA_DICT_INIT (permission_items, - G_N_ELEMENTS (permission_items))); + pw_client_update_permissions (pw_core_get_client(remote->core), +G_N_ELEMENTS (permission_items), +permission_items); pipewire_remote_roundtrip (remote); @@ -219,7
commit xdg-desktop-portal for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package xdg-desktop-portal for openSUSE:Leap:15.2 checked in at 2020-02-16 18:26:02 Comparing /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal (Old) and /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.26092 (New) Package is "xdg-desktop-portal" Sun Feb 16 18:26:02 2020 rev:19 rq:772178 version:1.6.0 Changes: --- /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal/xdg-desktop-portal.changes 2020-01-30 14:48:11.286831865 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.26092/xdg-desktop-portal.changes 2020-02-16 18:26:09.086649868 +0100 @@ -1,0 +2,58 @@ +Fri Jan 31 11:57:16 UTC 2020 - Antonio Larrosa + +- Set encoding before building to fix a build error in SLE. + +--- +Sat Jan 25 14:21:07 UTC 2020 - Dominique Leuenberger + +- No longer recommend -lang: supplements are in use + +--- +Fri Dec 20 23:44:36 UTC 2019 - Bjørn Lie + +- Update to version 1.6.0: + + tests: Adapt to libportal api changes. +- Changes from version 1.5.4: + + background: +- Add a signal to the impl api. +- Rewrite the monitoring to better track when apps disappear. + + permissions: Fix SetValue handling of GVariant wrapping. This +is an api change. + + openuri: +- Add a per-type always-ask option. +- Show the app chooser dialog less often. + + memorymonitor: A new portal to let apps receive low memory +warnings. + + filetransfer: A new portal to rewrite file paths between +sandboxes. +- Changes from version 1.5.3: + + Add more tests. + + location: Various fixes. + + document portal: Monitor fuse mount. + + openuri: +- Only ask 3 times to use the same app. +- Add an 'ask' option. + + Fix build from git. + + email: Allow multiple addresses, cc and bcc. + + filechooser: Allow saving multiple files. + + Update translations. +- Changes from version 1.5.2: + + Add many more tests, using libportal. + + gamemode: Add a pidfd-based api. + + inhibit: Send a Response signal. + + openuri: Add an OpenDirectory api. + + Updated translations. +- Changes from version 1.5.1: + + Add a portal for setting desktop backgrounds + + Add tests. + + Optionally use libportal (for tests). +- Changes from version 1.5.0: + + Add a secret portal that is meant be used via libsecret inside +the sandbox. One backend for this will live in gnome-keyring, +others are possible. + + Fix a file descriptor leak. + + Reduce log spam. + + Updated translations. +- Add pkgconfig(libportal) BuildRequires: New dependency. + +--- Old: xdg-desktop-portal-1.4.2.tar.xz New: xdg-desktop-portal-1.6.0.tar.xz Other differences: -- ++ xdg-desktop-portal.spec ++ --- /var/tmp/diff_new_pack.qpmx6i/_old 2020-02-16 18:26:09.406650036 +0100 +++ /var/tmp/diff_new_pack.qpmx6i/_new 2020-02-16 18:26:09.410650037 +0100 @@ -1,7 +1,7 @@ # # spec file for package xdg-desktop-portal # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 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,14 @@ Name: xdg-desktop-portal -Version:1.4.2 +Version:1.6.0 Release:0 Summary:A portal frontend service for Flatpak License:LGPL-2.1-or-later Group: System/Libraries URL:https://github.com/flatpak/xdg-desktop-portal -Source0: https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz +Source0:%{url}/releases/download/%{version}/%{name}-%{version}.tar.xz + BuildRequires: pkgconfig BuildRequires: xmlto BuildRequires: pkgconfig(flatpak) @@ -35,9 +36,9 @@ BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libgeoclue-2.0) >= 2.5.2 BuildRequires: pkgconfig(libpipewire-0.2) >= 0.2.6 +BuildRequires: pkgconfig(libportal) # Break cycle: we buildrequire flatpak, and flatpak has a requires on xdg-desktop-portal #!BuildIgnore: xdg-desktop-portal -Recommends: %{name}-lang %description A portal frontend service for Flatpak and possibly other desktop containment frameworks. @@ -66,6 +67,7 @@ %autosetup -p1 %build +export LANG=C.UTF-8 %configure \ --enable-geoclue \ --enable-pipewire \ @@ -73,6 +75,7 @@ %make_build %install +export LANG=C.UTF-8 %make_install %find_lang %{name} ++ xdg-desktop-portal-1.4.2.tar.xz -> xdg-desktop-portal-1.6.0.tar.xz ++ 23366 li
commit xdg-desktop-portal for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package xdg-desktop-portal for openSUSE:Leap:15.2 checked in at 2020-01-30 14:47:52 Comparing /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal (Old) and /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.26092 (New) Package is "xdg-desktop-portal" Thu Jan 30 14:47:52 2020 rev:18 rq:749631 version:1.4.2 Changes: --- /work/SRC/openSUSE:Leap:15.2/xdg-desktop-portal/xdg-desktop-portal.changes 2020-01-15 16:30:01.228807427 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.xdg-desktop-portal.new.26092/xdg-desktop-portal.changes 2020-01-30 14:48:11.286831865 +0100 @@ -2 +2 @@ -Wed Jan 30 08:48:58 UTC 2019 - Felix Zhang +Thu Jun 13 23:39:21 UTC 2019 - Bjørn Lie @@ -4,3 +4,127 @@ -- Add 0001-don-t-attempt-to-export-NULL-GDBusInt.patch: Prevent - crash when xdg-desktop-portal-gtk times out (boo#1118121, - gh#flatpak/xdg-desktop-portal#236) +- Update to version 1.4.2: + + Build fixes. +- Changes from version 1.4.1: + + Build fixes. +- Changes from version 1.4.0: + + Add a background & autostart portal. + + Add a gamemode portal. + + Add a camera portal. + + Require pipewire 0.2.6. + + inhibit: Track session state. + + documents: Fix a ref-counting bug. + + screencast: +- Add cursor modes. +- Memory leak fixes. + + Updated translations. +- Add pkgconfig(json-glib-1.0) BuildRequires: New dependency. + +--- +Wed Apr 10 12:29:04 UTC 2019 - Dominique Leuenberger + +- BuildIgnore xdg-desktop-portal: self-requires is not needed here + to build. Flatkpak has a (correct) dependency on + xdg-desktop-portal, but since we don't run flatpak during build, + but merely require its -devel package, we can break up this + chain. + +--- +Wed Jan 30 17:06:04 UTC 2019 - bjorn@gmail.com + +- Update to version 1.2.0: + + notification: +- Use icon validator from flatpak. +- Don't leave temp files around. + + email: Validate options better. + + inhibit: Validate options better. + + file chooser: Add support for setting the current filter. + + Updated translations. +- Changes from version 1.1.1: + + Validate icons in notifications. + + Respect lockdown settings. + + Write back permissions for notifications to indicate portal +use. + + Set st_nlink in the documents portal. + + Add infrastructure for validating options. + + Validate email addresses. + + Updated translations. +- Changes from version 1.1.0: + + Add a location portal, this requires geoclue 2.5.2. + + Add a settings portal, for desktop-wide settings like XSettings +or kdeglobals. + + Allow locking down printing, save-to-disk and opening uris. + + Monitor application changes in the open uri portal. + + Add more tests. + + Fix a crash when xdg-desktop-portal-gtk times out (boo#1118121, +gh#flatpak/xdg-desktop-portal#236). +- Add pkgconfig(fontconfig) and pkgconfig(flatpak) BuildRequires: + New dependencies. +- Add pkgconfig(libgeoclue-2.0) BuildRequires and pass + enable-geoclue to configure, build new optional location portal. + +--- +Wed Dec 19 21:50:14 UTC 2018 - bjorn@gmail.com + +- Update to version 1.0.3: + + Fix an option name in the remote desktop portal + + document-portal: Validate permissions and report errors + + Fix life-cycle issues with inodes in the document portal + + Improve the test coverage of the documents portal + + Add a 'coverage' make target +- Changes from version 1.0.2: + + networkmonitor: Fix several issues + + inhibit: Add session state monitoring +- Changes from version 1.0.1: + + networkmonitor: Add GetStatus and CanReach methods + + Unset GTK_USE_PORTAL + + Add a portal for moving files to the trash + + Fix an inode leak in the document portal +- Changes from version 1.0: + + screenshot: Add a color picker api + + screencast: Bump the pipewire dependency to 0.2.1 + + Improve --help output + + Small documentation improvements +- Changes from version 0.99: + + The NetworkMonitor portal API has been changed to allow access +control + + The Proxy and NetworkMonitor portals only respond to requests +from sandboxes with network access + + The flatpak portal is now documented +- Switch to tarball releases, upstream now releases stable + tarballs. +- Following the above, drop libtool BuildRequires and autogen.sh + macro call. +- Add pkgconfig(libpipewire-0.2) and pass --enable-pipewire to + configure, build screencast and screenshot support. + +--- +Tue Jun 26 10:08:20 UTC 2018 - bjorn@gmail.com + +- Update to version 0.11: + + OpenURI: +- Fix misleading warning when accessing the pe