diff options
author | kremlin <ian@kremlin.cc> | 2014-08-18 14:32:14 +0800 |
---|---|---|
committer | kremlin <ian@kremlin.cc> | 2014-08-18 14:32:14 +0800 |
commit | 5fd84921e6fd01982c6af915aa2129711de5e20b (patch) | |
tree | 16112a15e353ea2eb27d5452da742ac039033f40 /src | |
parent | 6031a90d2184c5a010773fdb49dfca1fbeee14a5 (diff) | |
download | systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar.gz systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar.bz2 systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar.lz systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar.xz systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.tar.zst systembsd-5fd84921e6fd01982c6af915aa2129711de5e20b.zip |
change polkit action names to match systemd's exactly
gnome-control-center has polkit rules which refer explicitly to action
names we need to match for it to work with our code properly
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/hostnamed/hostnamed.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index 3dae12c..3f63e0a 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -133,7 +133,7 @@ on_handle_set_hostname(Hostname1 *hn1_passed_interf, bus_name = g_dbus_method_invocation_get_sender(invoc); /* verify caller has correct permissions via polkit */ - is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.SetHostname", policykit_auth); + is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.set-hostname", policykit_auth); switch(is_authed) { @@ -210,7 +210,7 @@ on_handle_set_static_hostname(Hostname1 *hn1_passed_interf, bus_name = g_dbus_method_invocation_get_sender(invoc); /* verify caller has correct permissions via polkit */ - is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.SetStaticHostname", policykit_auth); + is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.set-static-hostname", policykit_auth); switch(is_authed) { @@ -289,7 +289,7 @@ on_handle_set_pretty_hostname(Hostname1 *hn1_passed_interf, bus_name = g_dbus_method_invocation_get_sender(invoc); /* verify caller has correct permissions via polkit */ - is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.SetPrettyHostname", policykit_auth); + is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.set-pretty-hostname", policykit_auth); switch(is_authed) { @@ -389,7 +389,7 @@ on_handle_set_chassis(Hostname1 *hn1_passed_interf, g_strlcpy(valid_chassis_name_buf, proposed_chassis_name, (gsize)64); /* verify caller has correct permissions via polkit */ - is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.SetChassis", policykit_auth); + is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.set-chassis", policykit_auth); switch(is_authed) { @@ -473,7 +473,7 @@ on_handle_set_icon_name(Hostname1 *hn1_passed_interf, bus_name = g_dbus_method_invocation_get_sender(invoc); /* verify caller has correct permissions via polkit */ - is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.SetIconName", policykit_auth); + is_authed = polkit_try_auth(bus_name, "org.freedesktop.hostname1.set-icon-name", policykit_auth); switch(is_authed) { |