diff options
author | Thomas Haller <thaller@redhat.com> | 2014-08-14 13:34:57 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-09-29 13:51:11 +0200 |
commit | eabe7d856c243673bbaba3295ce74d72e188596d (patch) | |
tree | 3c85e2d33dace5f644d8e605fd47f02d3367372c /src/nm-config.h | |
parent | 63a8c6a184a58176b656d9e22f99a280682e0e5f (diff) | |
download | NetworkManager-eabe7d856c243673bbaba3295ce74d72e188596d.tar.gz |
auth: rework polkit autorization to use DBUS interface directly
This makes NetworkManager independent of <polkit/polkit.h>
development headers and libpolkit-gobject-1.so library.
Instead communicate directly with polkit using its DBUS
interface.
PolicyKit support is now always compiled in. You can control
polkit authorization with the configuration option
[main]
auth-polkit=yes|no
If the configure option is omitted, a build time default
value is used. This default value can be set with the
configure option --enable-polkit.
This commit adds a new class NMAuthManager that reimplements the
relevant DBUS client parts. It takes source code from the polkit
library.
https://bugzilla.gnome.org/show_bug.cgi?id=734146
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'src/nm-config.h')
-rw-r--r-- | src/nm-config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nm-config.h b/src/nm-config.h index 8f4fa1f7af..27da4cbbc6 100644 --- a/src/nm-config.h +++ b/src/nm-config.h @@ -52,6 +52,7 @@ const char *nm_config_get_path (NMConfig *config); const char *nm_config_get_description (NMConfig *config); const char **nm_config_get_plugins (NMConfig *config); gboolean nm_config_get_monitor_connection_files (NMConfig *config); +gboolean nm_config_get_auth_polkit (NMConfig *config); const char *nm_config_get_dhcp_client (NMConfig *config); const char *nm_config_get_dns_mode (NMConfig *config); const char *nm_config_get_log_level (NMConfig *config); |