From cd223e6696157e792d4270e0fd86fbd53bccbfa8 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 20 Jan 2026 11:43:05 +0100 Subject: [PATCH 1/2] libnm: add safe file access backported symbols from 1.52.2 Add to main branch symbols for safe file access that were backported to 1.52.2 to allow seamless upgrading from 1.52 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 5bd2cef243..871850127a 100644 --- a/src/libnm-client-impl/libnm.ver +++ b/src/libnm-client-impl/libnm.ver @@ -2064,6 +2064,11 @@ global: nm_ethtool_optname_is_fec; } libnm_1_50_0; +libnm_1_52_2 { + #nm_utils_copy_cert_as_user@libnm_1_52_2; + #nm_vpn_plugin_info_supports_safe_private_file_access@libnm_1_52_2; +} libnm_1_52_0; + libnm_1_54_0 { global: nm_setting_ip_config_forwarding_get_type; diff --git a/src/libnm-client-impl/nm-client.c b/src/libnm-client-impl/nm-client.c index 13343cbf52..c036016752 100644 --- a/src/libnm-client-impl/nm-client.c +++ b/src/libnm-client-impl/nm-client.c @@ -9339,3 +9339,15 @@ NM_BACKPORT_SYMBOL(libnm_1_50_4, (optname)); NM_BACKPORT_SYMBOL(libnm_1_50_4, GType, nm_setting_ethtool_fec_mode_get_type, (void), ()); + +NM_BACKPORT_SYMBOL(libnm_1_52_2, + char *, + nm_utils_copy_cert_as_user, + (const char *filename, const char *user, GError **error), + (filename, user, error)); + +NM_BACKPORT_SYMBOL(libnm_1_52_2, + gboolean, + nm_vpn_plugin_info_supports_safe_private_file_access, + (NMVpnPluginInfo * self), + (self)); From a550828f767fe85ccf6327cb7cc217e11cb8e4bd Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 20 Jan 2026 11:57:30 +0100 Subject: [PATCH 2/2] 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));