From a550828f767fe85ccf6327cb7cc217e11cb8e4bd 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 main branch symbols for safe file access that were backported to 1.54.3 to allow seamless upgrading from 1.54 to 1.58. --- 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 871850127a..0b01e2e84c 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));