NetworkManager/clients/cli
Thomas Haller 030e1472f4 cli: don't fetch permissions for NMClient in nmcli unless required
This avoids unnecessarily fetching permissions, which are not needed
most of the time.

During `nmcli general permissions` we require to fetch the permissions. This is
now solved better, because previously the code waited for any permissions to be
not UNKNOWN. That was a hack, because there are cases where all permissions would
be UNKNOWN (hidepid mount option) and nmcli would hang.

There is a downside too: for `nmcli general permissions` we now first
need to wait for NMClient to initialize, before starting to fetch
permissions. Previously, we would call GetPermissions() in parallel
with initializing NMClient. It now takes longer.
That should be fixed be refactoring the code in nmcli to not wait for
NMClient to be fully initialized, before requesting the permissions.
2019-12-10 09:17:17 +01:00
..
agent.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
agent.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
common.c cli: don't fetch permissions for NMClient in nmcli unless required 2019-12-10 09:17:17 +01:00
common.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
connections.c nmcli: show IP interface name when doing 'nmcli connection show <PROFILE>' 2019-11-06 21:08:23 +01:00
connections.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
devices.c client/cli: add support for OWE key management flag 2019-12-05 14:00:10 +01:00
devices.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
general.c cli: don't fetch permissions for NMClient in nmcli unless required 2019-12-10 09:17:17 +01:00
general.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
meson.build cli: use nmc_client_new_async() instead of nm_client_new_async() 2019-12-10 09:17:17 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c cli: honor NO_COLOR environment variable to prevent automatic ASCII colors 2019-10-08 12:18:20 +02:00
nmcli.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
polkit-agent.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
polkit-agent.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
settings.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
settings.h all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
utils.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
utils.h all: add device carrier flag 2019-11-22 10:18:27 +01:00