NetworkManager/clients/cli
Beniamino Galvani e9f96024ae cli: return sane error message for D-Bus policy permission errors
The error returned to users when a load_connection(s)/set_logging call
fails due to D-Bus policy denial is a bit obscure:

  $ nmcli general logging level debug
  Error: failed to set logging: Rejected send message, 4 matched rules;
  type="method_call", sender=":1.233" (uid=1001 pid=27225 comm="nmcli
  general logging level debug ")
  interface="org.freedesktop.NetworkManager" member="SetLogging" error
  name="(unset)" requested_reply="0" destination=":1.207" (uid=0
  pid=25793 comm="/usr/sbin/NetworkManager --no-daemon ")

Convert it to a more comprehensible:

  $ nmcli general logging level debug
  Error: failed to set logging: access denied

https://bugzilla.redhat.com/show_bug.cgi?id=1362542
(cherry picked from commit 805925f9ef)
2016-08-20 10:45:55 +02:00
..
agent.c cli/agent: add subcommand completion 2016-08-01 13:52:36 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: return sane error message for D-Bus policy permission errors 2016-08-20 10:45:55 +02:00
common.h cli: return sane error message for D-Bus policy permission errors 2016-08-20 10:45:55 +02:00
connections.c cli: return sane error message for D-Bus policy permission errors 2016-08-20 10:45:55 +02:00
connections.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
devices.c cli: add -f argument completion 2016-08-01 15:51:29 +02:00
devices.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
general.c cli: return sane error message for D-Bus policy permission errors 2016-08-20 10:45:55 +02:00
general.h cli: output a short summary of devices when called without arguments 2016-07-19 14:29:05 +02:00
Makefile.am build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
nmcli-completion cli/device: add modify command 2016-06-29 20:28:42 +02:00
nmcli.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nmcli.h cli: add ability to indicate command completion expects a file name 2016-08-01 13:52:36 +02:00
polkit-agent.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c cli/connections: do connection completion in get_connection() 2016-08-01 13:52:36 +02:00
settings.h cli: add -f argument completion 2016-08-01 15:51:29 +02:00
utils.c all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
utils.h macros: add macro _nm_printf() for function attribute 2016-06-05 12:22:01 +02:00