NetworkManager/contrib/fedora/rpm
Thomas Haller ea8dbd7a6d
contrib/rpm: add "22-wifi-mac-addr.conf" to F40+
Install a configuration snippet on Fedora 40+, that sets the default for
"wifi.cloned-mac-address" to "stable-ssid" (otherwise, the built-in default
is "preserve").

This will mean, that on Wi-Fi profiles that don't explicitly override
the property "wifi.cloned-mac-address", a stable address is generated.
The benefit is, that Fedora will randomize the MAC address by default.

Note that this also affects all pre-existing Wi-Fi profiles, that don't
explicitly configure the property in the profile. Depending on how you
see it, this is desirable. Randomization should be done, unless the user
opts-out (not the other way around).

Note that setting "wifi.cloned-mac-address=stable-ssid" is similar to
setting a stable ID "${NETWORK_SSID}" and "wifi.cloned-mac-address=stable".
The difference is that the latter also affects other properties, like

  - "ipv6.addr-gen-mode=stable-privacy"
  - "{ethernet,wifi}.cloned-mac-address=stable"
  - "ipv4.dhcp-client-id=stable"
  - "ipv6.dhcp-duid=stable-{llt,ll,uuid}"
  - "{ipv4,ipv6}.iaid=stable"

Especially with "ipv6.addr-gen-mode=stable", changing the stable ID
would mean that also all IPv6 addresses change. We want to avoid that by
only changing the cloned-mac-address to "stable-ssid".

This means, after upgrade to F40, different MAC addresses will be used
on most users' Wi-Fi. This means, DHCP might hand out different IP
addresses, sessions might expire, and configuration that depended on the
previous MAC address will be affected.

https://pagure.io/fedora-workstation/issue/350
2023-11-17 12:48:37 +01:00
..
00-server.conf contrib/rpm: update comment in 00-server.conf 2016-02-03 16:25:19 +01:00
20-connectivity-fedora.conf contrib/rpm: add "enabled=true" key to "20-connectivity-{fedora,redhat}.conf" 2021-02-02 14:02:31 +01:00
20-connectivity-redhat.conf contrib/rpm: add "enabled=true" key to "20-connectivity-{fedora,redhat}.conf" 2021-02-02 14:02:31 +01:00
22-wifi-mac-addr.conf contrib/rpm: add "22-wifi-mac-addr.conf" to F40+ 2023-11-17 12:48:37 +01:00
70-nm-connectivity.conf contrib/rpm: disable rp_filter in config-connectivity-redhat 2019-07-15 20:16:31 +02:00
build.sh contrib/rpm: add "22-wifi-mac-addr.conf" to F40+ 2023-11-17 12:48:37 +01:00
build_clean.sh all: avoid "==" bashism in scripts 2023-05-18 09:16:41 +02:00
configure-for-system.sh contrib: update "configure-for-system.sh" and start build 2023-02-14 09:15:39 +01:00
mockbuild.sh contrib/fedora: Add mockbuild.sh 2017-10-30 11:04:20 +01:00
NetworkManager.conf contrib/rpm: update comments in default NetworkManager.conf 2021-06-01 09:35:07 +02:00
NetworkManager.spec contrib/rpm: add "22-wifi-mac-addr.conf" to F40+ 2023-11-17 12:48:37 +01:00
README contrib: make "contrib/fedora/REQUIRED_PACKAGES" executable script 2018-10-22 13:19:15 +02:00
readme-ifcfg-rh-migrated.txt contrib/rpm: add note about interface renaming with ifcfg vs keyfile 2023-10-03 14:09:21 +02:00
readme-ifcfg-rh.txt contrib/rpm: add note about interface renaming with ifcfg vs keyfile 2023-10-03 14:09:21 +02:00
release.sh release.sh: adjust check for gitlab-ci for changes in pipeline 2023-04-13 13:18:27 +02:00

# To build RPM packages for Fedora derivates directly from git, just do:


#
# preparation:
#
git clone https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
cd NetworkManager
git checkout $WHATEVER
./contrib/fedora/REQUIRED_PACKAGES


#
# build the packages. Pass --help for usage help.
#
./contrib/fedora/rpm/build_clean.sh


#
# install
#
sudo dnf install ./contrib/fedora/rpm/latest/RPMS/x86_64/*rpm



# To generate a clean build from git using mock, run:
./contrib/fedora/rpm/mockbuild.sh