NetworkManager/clients/cli
Jonathan Kang 243af16c5b Add polkit action for Wi-Fi scans
Previously, Wi-Fi scans uses polkit action
"org.freedesktop.NetworkManager.network-control". This is introduced
in commit 5e3e19d0. But in a system with restrict polkit rules, for
example "org.freedesktop.NetworkManager.network-control" was set as
auth_admin. When you open the network panel of GNOME Control Center, a
polkit dialog will keep showing up asking for admin password, as GNOME
Control Center scans the Wi-Fi list every 15 seconds.

Fix that by adding a new polkit action
"org.freedesktop.NetworkManager.wifi.scan" so that distributions can
add specific rule to allow Wi-Fi scans.

[thaller@redhat.com: fix macro in "shared/nm-common-macros.h"]

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/68
2019-02-21 13:49:17 +01:00
..
agent.c clients/secret-agent: allow suppressing prompting the entry-id when requesting secrets 2019-02-14 08:00:29 +01:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c clients/secret-agent: allow suppressing prompting the entry-id when requesting secrets 2019-02-14 08:00:29 +01:00
common.h cli: drop gettext() wrappers for no_l10n to-string functions 2018-12-11 09:23:47 +01:00
connections.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
connections.h cli/connections: export nmc_active_connection_cmp() 2018-11-21 11:46:21 +01:00
devices.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
devices.h cli: rework printing of "wired" and "wifi" device details 2018-07-09 15:43:55 +02:00
general.c Add polkit action for Wi-Fi scans 2019-02-21 13:49:17 +01:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
meson.build build: meson: Add trailing commas 2018-12-20 13:50:34 +01:00
nmcli-completion cli: make nmcli do its own command completion 2017-02-13 16:32:15 +01:00
nmcli.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
nmcli.h clients: don't tread secret agent as NMSecretAgentOld 2019-02-05 08:27:42 +01:00
polkit-agent.c all: drop unnecessary includes of <errno.h> and <string.h> 2019-02-12 08:50:28 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings.c cli: don't access global nm_cli variable from nmc_setting_set_property() 2018-10-10 09:55:45 +02:00
settings.h cli: don't access global nm_cli variable from nmc_setting_set_property() 2018-10-10 09:55:45 +02:00
utils.c all: replace strerror() calls with nm_strerror_native() 2019-02-12 08:50:28 +01:00
utils.h cli: don't use global variable nm_cli in nmc_terminal_spawn_pager() 2018-10-10 09:55:45 +02:00