summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * build: add dist-hook dependency for documentation filesThomas Haller2016-11-181-7/+27
| | | | | | | | ./autogen.sh --enable-gtk-doc --with-libnm-glib && make dist
| * build: refactor handling sources for libnm-utilThomas Haller2016-11-181-17/+32
| |
| * build: don't dist generated enum-types for libnm-glibThomas Haller2016-11-181-5/+11
| |
| * build: add dependency for generated files for libnm-glibThomas Haller2016-11-181-0/+5
| | | | | | | | | | Although the generated files are part of BUILD_SOURCES, that only matters during `make all`.
| * build: refactor handling sources for libnm-glibThomas Haller2016-11-181-27/+46
| | | | | | | | | | | | | | | | | | We have generated headers, and non-generated. We have public headers and internal headers. We have headers/sources for libnm-glib and libnm-glib-vpn. We want that non-generated files depend on generated files. Thus, reorder it all and assign the groups to different variables.
| * build: let libnm/libnm.la sources depend on introspection filesThomas Haller2016-11-181-3/+12
| | | | | | | | | | | | | | | | | | Source files like libnm/nm-client.c include introspection files like nmdbus-manager.h. These files are part of BUILT_SOURCES, which is a pre-requisite to "all" target. However, that is not sufficient for ./autogen --enable-gtk-doc && make dist
| * build: only generate documentation when BUILD_SETTING_DOCSThomas Haller2016-11-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Generating the docs, requires man/nm-settings.xml. That is only present when - ./configure --enable-gtk-doc --with-introspecton - in a dist-tarball, contrary to a git-tree Only create docs, when we also regenerate the manuals (BUILD_SETTING_DOCS). That is, you can no longer generate docs, by relying on the pre-generated manual pages. If you want to generate docs, you have to regenerate the manual pages as well. Previously, doing the following in a git-tree failed: $ git clean -fdx $ ./autogen.sh --enable-gtk-doc --enable-introspection=no && make ... make[2]: Entering directory './NetworkManager/docs/api' DOC Preparing build DOC Scanning header files DOC Introspecting gobjects DOC Building XML DOC Building XML make[2]: *** No rule to make target '../../man/nm-settings.xml', needed by 'html-build.stamp'. Stop. make[2]: Leaving directory './NetworkManager/docs/api'
| * core: drop unused "nm-bt-enum-types.h"Thomas Haller2016-11-182-10/+0
| | | | | | | | | | In core, we should not use any generated enum-types. Especially nm-bt-enum-types.h was unused already.
| * core: drop unused "nm-modem-enum-types.h"Thomas Haller2016-11-182-10/+0
| | | | | | | | | | In core, we should not use any generated enum-types. They are just bloat.
| * wwan: don't use generated enum-type NM_TYPE_MODEM_STATEThomas Haller2016-11-186-16/+23
|/
* team: ignore SIGPIPE when spawning teamdBeniamino Galvani2016-11-181-2/+9
| | | | | | | | | | | | | | | | | With systemd < 219, restarting the journald service closes the stdout and stderr streams associated with services. The NM process has SIGPIPE ignored, but g_spawn_sync()/g_spawn_async() re-enable it and so any child executed with those functions will terminate by default if it tries to log anything to stdout/stderr. The teamd instance launched by NM is affected by this problem since it writes debug messages before actually ignoring SIGPIPE. To fix this, use the @child_setup callback of g_spawn() to ignore again SIGPIPE in the child process. https://bugzilla.redhat.com/show_bug.cgi?id=1393853
* libnm/client: do not autostart the serviceLubomir Rintel2016-11-161-2/+2
| | | | | | | | | Apparently, the client is used by the services we depend on (firewalld), and an attempt to start the service would deadlock them. This was an accidental change anyway. Related firewalld change: https://github.com/t-woerner/firewalld/pull/171
* wifi: notify the AccessPoint change after an AP is removedLubomir Rintel2016-11-161-1/+2
| | | | | | | Otherwise its path remains visible on D-Bus despite the object is gone, making libnm sad and grumpy: libnm-WARNING **: no object known for /org/freedesktop/NetworkManager/AccessPoint/666
* examples/python: fix "import gi" in exampleThomas Haller2016-11-161-0/+2
| | | | | | | Otherwise there is a warning: from gi.repository import GLib, NM __main__:1: PyGIWarning: NM was imported without specifying a version first. Use gi.require_version(NM, 1.0) before import to ensure that the right version gets loaded.
* po: update German (de) translation (bgo #774461)Mario Blättermann2016-11-151-1263/+1441
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774461
* libnm: fixup accidental proxy removalLubomir Rintel2016-11-141-0/+2
| | | | Fixes: 4b7b518958a1baa805fec65c6b8a145cbc3df17d
* valgrind: two more gdbus suppressionsLubomir Rintel2016-11-141-0/+33
| | | | | | The GDBusObjectManagerClient's control proxy seems to leak some bits. Not sure why; but certainly not our fault since it's a private object and the manager object itself gets finalized.
* valgrind: suppression for a lazy GTask type initializationLubomir Rintel2016-11-141-0/+20
|
* libnm: avoid leaking the interface proxiesLubomir Rintel2016-11-147-17/+38
| | | | | _nm_object_get_proxy()'s semantics changed with the object-manager branch merge: it now takes a reference.
* libnm/client: unref all the objects on disposeLubomir Rintel2016-11-141-0/+8
| | | | We created them, we own them.
* libnm/tests: increase timeout in nm-client testLubomir Rintel2016-11-141-1/+1
| | | | Otherwise the test may fail in valgrind.
* valgrind: adjust one gdbus suppressionLubomir Rintel2016-11-141-1/+1
| | | | In Fedora 25 the actual frame was called "fun:g_main_context_iterate.isra.24".
* libnm: initialize @device_type of device objectsBeniamino Galvani2016-11-141-6/+32
| | | | | | | | | | | | | | Before switching to the ObjectManager, the D-Bus property was used to decide the actual type of the device and the property set manually by each subclass in its _init() function. Now we determine objects type based on their D-Bus interface and therefore we can handle the property like all others, ensuring that we return a known value in get_property() to avoid warnings in GLib. This fixes the missing initialization of the property which causes regressions on clients as nm-applet. Fixes: 1f5b48a59eb46c40cb10bf4381b2b21a19a9f471
* man: clarify dns=default setting in NetworkManager.conf manualThomas Haller2016-11-141-7/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=774399
* libnm/trivial: move hexstr<>bin conversion functionsThomas Haller2016-11-131-101/+101
| | | | | | | | | | | | nm_utils_hexstr2bin() is quite similar to hwaddr_aton(), and nm_utils_bin2hexstr() is similar to _bin2str_buf(). Move them close to each other. Maybe one day they should be consolidated. But their API is slightly different, so the consolidation would require some effort. For now, just move them close to each other, so that it's clearer that two similar (but distinct) functions exists.
* device: drop factory-no-default global arraysThomas Haller2016-11-133-33/+20
| | | | | | | | | | | | On some architectures, it seems we don't properly expose the symbol of these static variables from NetworkManager binary. Just avoid that and don't instead use a static array inside the device plugin itself. While at it, make the arrays all const, which possibly allows the linker to put those symbols in the read-only section.
* systemd: merge branch systemd into masterThomas Haller2016-11-1319-45/+72
|\
| * systemd: update code from upstreamThomas Haller2016-11-1317-44/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a direct dump from systemd git on 2016-11-12, git commit 1f8c78a1bab2e06a462894fa89d842ffc313832d. ====== SYSTEMD_DIR=../systemd COMMIT=1f8c78a1bab2e06a462894fa89d842ffc313832d ( cd "$SYSTEMD_DIR" git checkout "$COMMIT" git reset --hard git clean -fdx ) git ls-files :/src/systemd/src/ | xargs -d '\n' rm -f nm_copy_sd() { mkdir -p "./src/systemd/$(dirname "$1")" cp "$SYSTEMD_DIR/$1" "./src/systemd/$1" } nm_copy_sd "src/basic/alloc-util.c" nm_copy_sd "src/basic/alloc-util.h" nm_copy_sd "src/basic/async.h" nm_copy_sd "src/basic/escape.c" nm_copy_sd "src/basic/escape.h" nm_copy_sd "src/basic/ether-addr-util.c" nm_copy_sd "src/basic/ether-addr-util.h" nm_copy_sd "src/basic/extract-word.c" nm_copy_sd "src/basic/extract-word.h" nm_copy_sd "src/basic/fileio.c" nm_copy_sd "src/basic/fileio.h" nm_copy_sd "src/basic/fd-util.c" nm_copy_sd "src/basic/fd-util.h" nm_copy_sd "src/basic/fs-util.c" nm_copy_sd "src/basic/fs-util.h" nm_copy_sd "src/basic/hash-funcs.c" nm_copy_sd "src/basic/hash-funcs.h" nm_copy_sd "src/basic/hashmap.c" nm_copy_sd "src/basic/hashmap.h" nm_copy_sd "src/basic/hexdecoct.c" nm_copy_sd "src/basic/hexdecoct.h" nm_copy_sd "src/basic/hostname-util.c" nm_copy_sd "src/basic/hostname-util.h" nm_copy_sd "src/basic/in-addr-util.c" nm_copy_sd "src/basic/in-addr-util.h" nm_copy_sd "src/basic/io-util.c" nm_copy_sd "src/basic/io-util.h" nm_copy_sd "src/basic/list.h" nm_copy_sd "src/basic/log.h" nm_copy_sd "src/basic/macro.h" nm_copy_sd "src/basic/mempool.h" nm_copy_sd "src/basic/mempool.c" nm_copy_sd "src/basic/parse-util.c" nm_copy_sd "src/basic/parse-util.h" nm_copy_sd "src/basic/path-util.c" nm_copy_sd "src/basic/path-util.h" nm_copy_sd "src/basic/prioq.h" nm_copy_sd "src/basic/prioq.c" nm_copy_sd "src/basic/random-util.c" nm_copy_sd "src/basic/random-util.h" nm_copy_sd "src/basic/refcnt.h" nm_copy_sd "src/basic/set.h" nm_copy_sd "src/basic/signal-util.h" nm_copy_sd "src/basic/siphash24.c" nm_copy_sd "src/basic/siphash24.h" nm_copy_sd "src/basic/socket-util.c" nm_copy_sd "src/basic/socket-util.h" nm_copy_sd "src/basic/sparse-endian.h" nm_copy_sd "src/basic/stdio-util.h" nm_copy_sd "src/basic/string-table.c" nm_copy_sd "src/basic/string-table.h" nm_copy_sd "src/basic/string-util.c" nm_copy_sd "src/basic/string-util.h" nm_copy_sd "src/basic/strv.c" nm_copy_sd "src/basic/strv.h" nm_copy_sd "src/basic/time-util.c" nm_copy_sd "src/basic/time-util.h" nm_copy_sd "src/basic/umask-util.h" nm_copy_sd "src/basic/unaligned.h" nm_copy_sd "src/basic/utf8.c" nm_copy_sd "src/basic/utf8.h" nm_copy_sd "src/basic/util.c" nm_copy_sd "src/basic/util.h" nm_copy_sd "src/libsystemd-network/arp-util.c" nm_copy_sd "src/libsystemd-network/arp-util.h" nm_copy_sd "src/libsystemd-network/dhcp6-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp6-network.c" nm_copy_sd "src/libsystemd-network/dhcp6-option.c" nm_copy_sd "src/libsystemd-network/dhcp6-protocol.h" nm_copy_sd "src/libsystemd-network/dhcp-identifier.c" nm_copy_sd "src/libsystemd-network/dhcp-identifier.h" nm_copy_sd "src/libsystemd-network/dhcp-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-lease-internal.h" nm_copy_sd "src/libsystemd-network/dhcp-network.c" nm_copy_sd "src/libsystemd-network/dhcp-option.c" nm_copy_sd "src/libsystemd-network/dhcp-packet.c" nm_copy_sd "src/libsystemd-network/dhcp-protocol.h" nm_copy_sd "src/libsystemd-network/lldp-internal.h" nm_copy_sd "src/libsystemd-network/lldp-neighbor.c" nm_copy_sd "src/libsystemd-network/lldp-neighbor.h" nm_copy_sd "src/libsystemd-network/lldp-network.c" nm_copy_sd "src/libsystemd-network/lldp-network.h" nm_copy_sd "src/libsystemd-network/network-internal.c" nm_copy_sd "src/libsystemd-network/network-internal.h" nm_copy_sd "src/libsystemd-network/sd-dhcp6-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp6-lease.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-client.c" nm_copy_sd "src/libsystemd-network/sd-dhcp-lease.c" nm_copy_sd "src/libsystemd-network/sd-ipv4ll.c" nm_copy_sd "src/libsystemd-network/sd-ipv4acd.c" nm_copy_sd "src/libsystemd-network/sd-lldp.c" nm_copy_sd "src/libsystemd/sd-event/sd-event.c" nm_copy_sd "src/libsystemd/sd-id128/id128-util.c" nm_copy_sd "src/libsystemd/sd-id128/id128-util.h" nm_copy_sd "src/libsystemd/sd-id128/sd-id128.c" nm_copy_sd "src/shared/dns-domain.c" nm_copy_sd "src/shared/dns-domain.h" nm_copy_sd "src/systemd/_sd-common.h" nm_copy_sd "src/systemd/sd-dhcp6-client.h" nm_copy_sd "src/systemd/sd-dhcp6-lease.h" nm_copy_sd "src/systemd/sd-dhcp-client.h" nm_copy_sd "src/systemd/sd-dhcp-lease.h" nm_copy_sd "src/systemd/sd-event.h" nm_copy_sd "src/systemd/sd-ndisc.h" nm_copy_sd "src/systemd/sd-id128.h" nm_copy_sd "src/systemd/sd-ipv4acd.h" nm_copy_sd "src/systemd/sd-ipv4ll.h" nm_copy_sd "src/systemd/sd-lldp.h"
* | ndisc/lndp: fix unregistration of receive handlerBeniamino Galvani2016-11-121-2/+2
| | | | | | | | Fixes: 63878566020b8dab0180f6b8000f521fd43ada53
* | libnm/nm-object: gracefully skip unknown objectsLubomir Rintel2016-11-111-10/+7
| | | | | | | | | | | | | | They indicate a server bug (a dangling path of an object that does not exist). The best we can do probably is to just ignore them and warn. Based-on-patch-by: Dan Williams <dcbw@redhat.com>
* | libnm/manager: don't fail the object if we can't get the permissionsLubomir Rintel2016-11-111-4/+9
| | | | | | | | | | It's not fatal and the NMObject's initialization shouldn't fail. Just write out a polite warning and leave the permissions in UNKNOWN state.
* | auth-utils: don't fail the auth chain if we can't get a single permissionsLubomir Rintel2016-11-111-10/+5
| | | | | | | | | | | | It could be that the client is just newer and it's just too harsh to fail the whole request. Leave the unknown permission in unknown and possibly proceed filling in the rest.
* | merge: branch 'lr/async-client'Lubomir Rintel2016-11-1110-262/+361
|\ \ | | | | | | | | | https://bugzilla.gnome.org/show_bug.cgi?id=771190
| * | cli/general: defer printing the permissions until we know themlr/async-clientLubomir Rintel2016-11-111-1/+65
| | | | | | | | | | | | The async client might be constructed before we know the permissions.
| * | libnm/nm-manager: don't block the object creation on permissionsLubomir Rintel2016-11-111-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GetPermissions call is very expensive (~400ms here, an extra NM->polkit call for every known permission while polkit being really slow to answer) yet seldom needed. There's no methods to access the permissions -- they're only communicated via signals. Unfortunately, we don't know when a signal is hooked, so we still need to kick of the call. Nevertheless, we don't need to wait for it to finish.
| * | cli: use nmc_do_cmd to get the client and check if the daemon is runningLubomir Rintel2016-11-117-142/+54
| | | | | | | | | | | | | | | The makes use of asynchronous client initialization, making things a bit faster and reduces code duplication too.
| * | cli: make it possible to call sub-commands with client obtained asynchronouslyLubomir Rintel2016-11-117-115/+215
| | |
| * | cli: get rid of client-global connections listLubomir Rintel2016-11-116-47/+67
| | | | | | | | | | | | | | | Caching it in the NmCli object is unnecessary, ugly and would be cumbersome in future when we'll be creating the client object only when needed.
| * | cli/trivial: fix some whitespace errorsLubomir Rintel2016-11-111-10/+10
|/ /
* | device: properly handle MTU for devices with @iface != @ip_ifaceBeniamino Galvani2016-11-111-10/+43
| | | | | | | | | | | | | | | | | | | | | | | | When the device has an IP interface different from the main one, we previously took the MTU saved in priv->mtu (which is the MTU initially set on the underlying interface) and applied it to the IP interface. This is wrong as it forces the two MTUs to be equal and breaks connectivity for devices with encapsulation (as PPP). Instead, track the two MTUs in different variables. https://bugzilla.redhat.com/show_bug.cgi?id=1385198
* | man: use <filename> to mark file namesLubomir Rintel2016-11-112-19/+24
| | | | | | | | | | This gives the templates a chance to do something extra clever with the formatting. The templates, of course, choose not to :(
* | man: link to some online resourcesLubomir Rintel2016-11-111-0/+9
| |
* | man: get rid of the extra capitalization in docbook sourceLubomir Rintel2016-11-111-2/+2
| | | | | | | | The temaplates capitalize the names if they wish.
* | ifcfg-rh: improve handling of empty strings in svUnescape()Thomas Haller2016-11-114-22/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - a key FOO='' would still allocate a temporary GString and return the allocated empty string. Don't do that. This saves the g_free() in svGetValueString() for this common case. We should return an allocated string only if it is necessary. It is not necessary for the "" case, and it is inconsistent. - when returning an empty string, always return the static string "". No need to seek to the end of value, and return a pointer to that string. This happens for example in the case FOO= # empty value, but trailing stuff FOO="" FOO=$'\Uxhallo'
* | ifcfg-rh: accept 802.1x connection with empty EAP-TLS identityBeniamino Galvani2016-11-111-7/+3
| | | | | | | | | | | | An identity is not needed for EAP-TLS. https://bugzilla.redhat.com/show_bug.cgi?id=1391477
* | merge: nm-import-openvpn script improvementsJiří Klimeš2016-11-101-33/+109
|\ \
| * | nm-import-openvpn: sort the options alphabeticallyJiří Klimeš2016-11-101-14/+14
| | |
| * | nm-import-openvpn: remove old code for 'dev' optionJiří Klimeš2016-11-101-9/+0
| | |
| * | nm-import-openvpn: parse quoted string as a single wordJiří Klimeš2016-11-101-4/+21
| | | | | | | | | | | | | | | It is necessary, for example, for this to work: verify-x509-name "C=US, L=Cambridge, CN=GNOME, emailAddress=networkmanager-list@gnome.org" subject
| * | nm-import-openvpn: import 'verify-x509-name' optionJiří Klimeš2016-11-101-0/+11
| | | | | | | | | | | | https://git.gnome.org/browse/network-manager-openvpn/commit/?id=b51b3562ce079cc0be426e968fe1c90faadc0efd