ifcfg-rh: throw error if connection.dnssec is used

This commit is contained in:
Robin Ebert 2025-09-08 11:27:40 +02:00
parent 46306c1be0
commit c6a6801b1e
No known key found for this signature in database
GPG key ID: 8B6531570DC10850

View file

@ -3626,6 +3626,14 @@ do_write_construct(NMConnection *connection,
write_ip_routing_rules(connection, ifcfg, route_ignore);
if (nm_setting_connection_get_dnssec(s_con) != NM_SETTING_CONNECTION_DNSSEC_DEFAULT) {
set_error_unsupported(error,
connection,
NM_SETTING_CONNECTION_SETTING_NAME "." NM_SETTING_CONNECTION_DNSSEC,
TRUE);
return FALSE;
}
write_connection_setting(s_con, ifcfg, interface_name);
NM_SET_OUT(out_ifcfg, g_steal_pointer(&ifcfg));