From 6dc64dfa0c7229fd7f8f86093f664710459263c2 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 20 Jan 2026 11:57:30 +0100 Subject: [PATCH] libnm: add safe file access backported symbols from 1.54.3 Add to branch nm-1-56 symbols for safe file access that were backported to 1.54.3 to allow seamless upgrading from 1.54 to 1.56. --- src/libnm-client-impl/libnm.ver | 5 +++++ src/libnm-client-impl/nm-client.c | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/libnm-client-impl/libnm.ver b/src/libnm-client-impl/libnm.ver index a82f6a1747..6c48978a21 100644 --- a/src/libnm-client-impl/libnm.ver +++ b/src/libnm-client-impl/libnm.ver @@ -2089,6 +2089,11 @@ global: nm_setting_hsr_protocol_version_get_type; } libnm_1_54_0; +libnm_1_54_3 { + #nm_utils_copy_cert_as_user@libnm_1_54_3; + #nm_vpn_plugin_info_supports_safe_private_file_access@libnm_1_54_3; +} libnm_1_54_2; + libnm_1_56_0 { global: nm_dns_server_validate; diff --git a/src/libnm-client-impl/nm-client.c b/src/libnm-client-impl/nm-client.c index c036016752..b81ac6e506 100644 --- a/src/libnm-client-impl/nm-client.c +++ b/src/libnm-client-impl/nm-client.c @@ -9351,3 +9351,15 @@ NM_BACKPORT_SYMBOL(libnm_1_52_2, nm_vpn_plugin_info_supports_safe_private_file_access, (NMVpnPluginInfo * self), (self)); + +NM_BACKPORT_SYMBOL(libnm_1_54_3, + char *, + nm_utils_copy_cert_as_user, + (const char *filename, const char *user, GError **error), + (filename, user, error)); + +NM_BACKPORT_SYMBOL(libnm_1_54_3, + gboolean, + nm_vpn_plugin_info_supports_safe_private_file_access, + (NMVpnPluginInfo * self), + (self));