if (type != DBUS_TYPE_STRING)
return __connman_error_invalid_arguments(msg);
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
if (__connman_security_check_privilege(msg,
CONNMAN_SECURITY_PRIVILEGE_SECRET) < 0)
return __connman_error_permission_denied(msg);
if (type != DBUS_TYPE_STRING)
return __connman_error_invalid_arguments(msg);
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
if (service->type != CONNMAN_SERVICE_TYPE_CELLULAR)
return __connman_error_invalid_service(msg);
if (type != DBUS_TYPE_STRING)
return __connman_error_invalid_arguments(msg);
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
if (service->type != CONNMAN_SERVICE_TYPE_CELLULAR)
return __connman_error_invalid_service(msg);
if (type != DBUS_TYPE_STRING)
return __connman_error_invalid_arguments(msg);
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
if (service->type != CONNMAN_SERVICE_TYPE_CELLULAR)
return __connman_error_invalid_service(msg);
g_get_current_time(&service->modified);
__connman_storage_save_service(service);
} else if (g_str_equal(name, "Passphrase") == TRUE) {
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
g_free(service->passphrase);
service->passphrase = NULL;
if (service->type == CONNMAN_SERVICE_TYPE_ETHERNET)
return __connman_error_not_supported(msg);
+ if (service->immutable == TRUE)
+ return __connman_error_not_supported(msg);
+
if (service->favorite == FALSE &&
service->state != CONNMAN_SERVICE_STATE_FAILURE)
return __connman_error_not_supported(msg);