Find a file
Jonathan Lebon a1d9a79228
contrib/rpm: don't trigger udev if socket doesn't exist
On rpm-ostree systems, we don't want scriptlets to affect the running
system because a major part of the value is "background updates".
Scriptlets are run in a containerized environment where e.g. udev is not
available.

Add a check for the udev socket before triggering it to handle this.
This also helps the container use case.

This doesn't break rpm-ostree strictly, because it uses `|| :`, but it
still spams error messages during the compose. I kept the `|| :` to be
safe, but it's likely fine to remove them now.

See-also: https://bugzilla.redhat.com/show_bug.cgi?id=1352154
See-also: https://src.fedoraproject.org/rpms/udisks2/pull-request/3
See-also: https://github.com/coreos/fedora-coreos-tracker/issues/703

https://src.fedoraproject.org/rpms/NetworkManager/pull-request/6
2021-01-14 22:46:35 +01:00
.gitlab-ci gitlab-ci: enable test build on alpine linux 2020-12-11 18:14:10 +01:00
clients device: add "ipv4.dhcp-client-id=ipv6-duid" property for RFC4361 2021-01-11 18:59:01 +01:00
contrib contrib/rpm: don't trigger udev if socket doesn't exist 2021-01-14 22:46:35 +01:00
data all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
dispatcher all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
docs all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
examples all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
introspection all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
libnm all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
libnm-core libnm: avoid "-Wmaybe-uninitialized" warning in nm_setting_ethtool_get_optnames() 2021-01-12 16:32:59 +01:00
m4 build: add comment for disabling "-Wmaybe-uninitialized" with LTO 2021-01-08 12:36:55 +01:00
man man: improve "nm-cloud-setup" manual page 2021-01-08 16:34:53 +01:00
po po: update Ukrainian (uk) translation 2021-01-14 18:09:24 +01:00
shared shared: add nm_str_buf_append_{dirty,c_len}() helpers 2021-01-14 10:38:52 +01:00
src initrd: fix leak in test 2021-01-14 21:48:16 +01:00
tools all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
vapi all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
.clang-format core: add nm_ip_config_iter_ip_address_for_each() macro 2020-11-24 08:52:59 +01:00
.dir-locals.el
.git-blame-ignore-revs format: add ".git-blame-ignore-revs" and hint how to ignore the commit during git-blame 2020-10-27 16:00:45 +01:00
.gitignore build: ignore "docs/api/NetworkManager.actions" build artifact 2020-12-03 17:31:30 +01:00
.gitlab-ci.yml gitlab-ci: install missing packages on Alpine Linux 2020-12-23 10:48:26 +01:00
.mailmap mailmap: add Matt to mailmap 2020-10-22 13:34:55 +02:00
.triage-policies.yml gitlab-ci: use ruby:2.7 for triage pipeline 2020-03-18 17:40:59 +01:00
AUTHORS
autogen.sh format: replace tabs with spaces in sheell scripts 2020-09-29 09:19:29 +02:00
ChangeLog
config-extra.h.meson build: remove duplicate and unused RUNDIR define 2019-05-17 21:24:18 +02:00
config-extra.h.mk
config.h.meson libnm: always build libnm with JSON validation 2020-07-09 11:47:06 +02:00
configure.ac release: bump version to 1.29.8 (development) 2021-01-14 18:56:21 +01:00
CONTRIBUTING format: add ".git-blame-ignore-revs" and hint how to ignore the commit during git-blame 2020-10-27 16:00:45 +01:00
COPYING
COPYING.GFDL
COPYING.LGPL COPYING: make sure we ship the relevant license texts 2019-09-10 11:10:52 +02:00
linker-script-binary.ver
linker-script-devices.ver
linker-script-settings.ver
lsan.suppressions tests/sanitizer: suppress leak in openssl 2020-05-14 12:03:24 +02:00
MAINTAINERS
Makefile.am systemd: merge branch systemd into master 2021-01-05 09:22:56 +01:00
Makefile.examples examples: add "ovs-external-ids.py" example script 2020-11-09 17:53:15 +01:00
Makefile.glib
Makefile.vapigen
meson.build release: bump version to 1.29.8 (development) 2021-01-14 18:56:21 +01:00
meson_options.txt build/meson: enable "more_asserts" only for devel builds 2020-09-08 18:40:57 +02:00
NetworkManager.pc.in
NEWS NEWS: update 2021-01-12 16:41:31 +01:00
README
RELICENSE.md license: add Daniel to RELICENSE.md 2020-09-24 09:35:00 +02:00
TODO all: fix typo in man pages 2020-07-03 10:48:04 +02:00
valgrind.suppressions

******************
NetworkManager core daemon has moved to gitlab.freedesktop.org!

git clone https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
******************


Networking that Just Works
--------------------------

NetworkManager attempts to keep an active network connection available at all
times.  The point of NetworkManager is to make networking configuration and
setup as painless and automatic as possible.  NetworkManager is intended to
replace default route, replace other routes, set IP addresses, and in general
configure networking as NM sees fit (with the possibility of manual override as
necessary).  In effect, the goal of NetworkManager is to make networking Just
Work with a minimum of user hassle, but still allow customization and a high
level of manual network control.  If you have special needs, we'd like to hear
about them, but understand that NetworkManager is not intended for every
use-case.

NetworkManager will attempt to keep every network device in the system up and
active, as long as the device is available for use (has a cable plugged in,
the killswitch isn't turned on, etc).  Network connections can be set to
'autoconnect', meaning that NetworkManager will make that connection active
whenever it and the hardware is available.

"Settings services" store lists of user- or administrator-defined "connections",
which contain all the settings and parameters required to connect to a specific
network.  NetworkManager will _never_ activate a connection that is not in this
list, or that the user has not directed NetworkManager to connect to.


How it works:

The NetworkManager daemon runs as a privileged service (since it must access
and control hardware), but provides a D-Bus interface on the system bus to
allow for fine-grained control of networking.  NetworkManager does not store
connections or settings, it is only the mechanism by which those connections
are selected and activated.

To store pre-defined network connections, two separate services, the "system
settings service" and the "user settings service" store connection information
and provide these to NetworkManager, also via D-Bus.  Each settings service
can determine how and where it persistently stores the connection information;
for example, the GNOME applet stores its configuration in GConf, and the system
settings service stores its config in distro-specific formats, or in a distro-
agnostic format, depending on user/administrator preference.

A variety of other system services are used by NetworkManager to provide
network functionality: wpa_supplicant for wireless connections and 802.1x
wired connections, pppd for PPP and mobile broadband connections, DHCP clients
for dynamic IP addressing, dnsmasq for proxy nameserver and DHCP server
functionality for internet connection sharing, and avahi-autoipd for IPv4
link-local addresses.  Most communication with these daemons occurs, again,
via D-Bus.


Why doesn't my network Just Work?

Driver problems are the #1 cause of why NetworkManager sometimes fails to
connect to wireless networks.  Often, the driver simply doesn't behave in a
consistent manner, or is just plain buggy.  NetworkManager supports _only_
those drivers that are shipped with the upstream Linux kernel, because only
those drivers can be easily fixed and debugged.  ndiswrapper, vendor binary
drivers, or other out-of-tree drivers may or may not work well with
NetworkManager, precisely because they have not been vetted and improved by the
open-source community, and because problems in these drivers usually cannot
be fixed.

Sometimes, command-line tools like 'iwconfig' will work, but NetworkManager will
fail.  This is again often due to buggy drivers, because these drivers simply
aren't expecting the dynamic requests that NetworkManager and wpa_supplicant
make.  Driver bugs should be filed in the bug tracker of the distribution being
run, since often distributions customize their kernel and drivers.

Sometimes, it really is NetworkManager's fault.  If you think that's
the case, please file a bug at:

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues

Attaching NetworkManager debug logs from the journal (or wherever your
distribution directs syslog's 'daemon' facility output, as
/var/log/messages or /var/log/daemon.log) is often very helpful, and
(if you can get) a working wpa_supplicant config file helps
enormously.  See the logging section of file
contrib/fedora/rpm/NetworkManager.conf for how to enable debug logging
in NetworkManager.