- 02 Nov, 2017 8 commits
-
-
Thomas Haller authored
`systemctl start network-online.target` should suffice to start "NetworkManager.service". That would work because - "network-online.target" has "Wants=NetworkManager-wait-online.service" - "NetworkManager-wait-online.service" has "Require=NetworkManager.service". But previously, "NetworkManager-wait-online.service" would just fail with missing dependency. See also https://github.com/systemd/systemd/pull/6065 which does the same for networkd's wait-online serice, and see rh#1452866 for a use-case. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1452866
-
Beniamino Galvani authored
Don't compile ovs support when the RPM is built --without=ovs, to fix the following error: error: Installed (but unpackaged) file(s) found: /usr/lib/systemd/system/NetworkManager.service.d/NetworkManager-ovs.conf /usr/lib64/NetworkManager/libnm-device-plugin-ovs.so /usr/share/man/man7/nm-openvswitch.7.gz Fixes: 830a5a14
-
Thomas Haller authored
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1401515
-
Thomas Haller authored
-
Thomas Haller authored
It will be also used by NMDeviceWifi. It might waste a 4 bytes for device types that don't require authentication. But it deduplicates code.
-
Thomas Haller authored
-
Thomas Haller authored
The number of authentication retires is useful also for passwords aside 802-1x settings. For example, src/devices/wifi/nm-device-wifi.c also has a retry counter and uses a hard-coded value of 3. Move the setting, so that it can be used in general. Although it is still not implemented for other settings. This is an API and ABI break.
-
Lubomir Rintel authored
They're provided by the Manager, not by the RemoteSettings.
-
- 31 Oct, 2017 21 commits
-
-
Thomas Haller authored
Coverity detects that the "if (blob)" condition must always be true. Reorder the code, to avoid the warning. It's a bit clearer this way anyway.
-
Thomas Haller authored
-
Thomas Haller authored
Some cleanup of handling autoconnect behavior. The introduction of NMSetting8021x:auth-retries property, changes behavior in that password retries are no longer controlled by NMSettingConnection:autoconnect-retries property. https://bugzilla.redhat.com/show_bug.cgi?id=1401515
-
Thomas Haller authored
Only NMPolicy should be concerned with handling autoconnect, and blocking it. Move the code. Note that there is a slight possible change in behavior, as the order of when the connection is blocked changes, based on the different times when the device changed signal gets executed. But that shouldn't be a problem.
-
Thomas Haller authored
-
Thomas Haller authored
Step by step, we move all tracking of autoconnect to NMPolicy.
-
Thomas Haller authored
Since commit 4a6fd0e8 (device: honor the connection.autoconnect-retries for 802.1X) and the related bug bgo#723084, we reuse the autoconnect-retries setting to control the retry count for requesting passwords. I think that is wrong. These are two different settings, we should not reuse the autoconnect retry counter while the device is still active. For example, the user might wish to set autoconnect-retries to infinity (zero). In that case, we would retry indefinitly to request a password. That could be problematic, if there is a different issue with the connection, that makes it appear tha the password is wrong. A full re-activation might succeed, but we would never stop retrying to authenticate. Instead, we should have two different settings for retrying to authenticate and to autoconnect. This is a change in behavior compared to 1.8.
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
-
Thomas Haller authored
It has almost no callers, and it is a bit of a strange API. Let's not cache the last accessed value inside NMConfigData. Instead, free it right after use. It was not reused anyway, it only hangs around as convenience for the caller.
-
Thomas Haller authored
-
Thomas Haller authored
Names like - nm_settings_connection_get_autoconnect_retries - nm_settings_connection_set_autoconnect_retries - nm_settings_connection_reset_autoconnect_retries are about the same thing, but they are cumbersome to grep because they share not a common prefix. Rename them from SUBJECT_VERB_OBJECT to SUBJECT_OBJECT_VERB, which sounds odd in English, but seems preferred to me. Now you can grep for "nm_settings_connection_autoconnect_retries_" to get all accessors of the retry count, or "nm_settings_connection_autoconnect_" to get all accessors related to autoconnect in general.
-
Lubomir Rintel authored
I didn't really mean to include it as it doesn't make any sense at this point and makes the logs a bit more messy. This reverts commit 340e35c0.
-
Lubomir Rintel authored
Since 32b3eb11 [core: merge IPv4 and IPv6 implementation of nm_utils_ip4_property_path()], nm_utils_sysctl_ip_conf_path() introduced in cd271d5c [core: add nm_utils_sysctl_ip_conf_is_path() util] is used to cunstruct sysctl paths and it is way less tolerant towards using something that is not an interface name in the path. It's always been incorrect to assume the ifname is a linux link name and it resulted it ugly, if benign, sysctl access attempts such as "/sys/class/net/28:B2:BD:5D:23:AB/phys_port_id" etc. Now it triggers an assertion failure. Let's guard all such accesses. Fixes: 32b3eb11 Fixes: cd271d5c
-
Beniamino Galvani authored
Fixes: a83ab252
-
Lubomir Rintel authored
So that we work well on VAXen.
-
Beniamino Galvani authored
When the ifcfg-rh plugin writes a 802-1x setting it currently ignores the password-raw property and so the password disappears when the connection is saved. Add support for the property.
-
Lubomir Rintel authored
-
Lubomir Rintel authored
-
- 30 Oct, 2017 11 commits
-
-
Thomas Haller authored
Fixes: 17ec3aef https://bugzilla.gnome.org/show_bug.cgi?id=789662
-
-
Lubomir Rintel authored
-
Thomas Haller authored
Normalizing can be complicated, as settings depend on each other and possibly conflict. That is, because verify() must exactly anticipate whether normalization will succeed and how the result will look like. That is because we only want to modify the connection, if we are sure that the result will verify. Hence, verify() and normalize() are strongly related. The implementation should not be spread out between NMSettingOvsInterface:verify(), NMSettingOvsPatch:verify() and _normalize_ovs_interface_type(). Also, add some unit-tests.
-
Thomas Haller authored
-
Thomas Haller authored
There is no API to get all settings. You can only ask for settings explicitly, but that requires you to probe for them and know which ones may exist. The alternative API might be nm_connection_for_each_setting_value(), but that only iterates over settings' properties. If a setting has no properties, it is ignored.
-
Thomas Haller authored
For a while now, all NMPObject instances are not modified after being cached. They are immutable, and can be passed around by keeping a reference to them. No longer copy the NMPlatformLink data to a @info variable. Instead, take a reference (which ensures that the instance stays alive). It won't change, as it's immutable. The advantage is, that whenever you see a NMPlatformLink pointer, for exmple in device_recheck_slave_status(), you can be sure that it's actually a NMPObect, and NMP_OBJECT_UP_CAST() will work.
-
Lubomir Rintel authored
-
Lubomir Rintel authored
-
Lubomir Rintel authored
-
Lubomir Rintel authored
-