diff options
author | Michael Chapman <mike@very.puzzling.org> | 2015-09-06 00:07:16 +1000 |
---|---|---|
committer | Michael Chapman <mike@very.puzzling.org> | 2015-09-06 00:07:16 +1000 |
commit | 403ed0e5c914f2a0a683403d8ba7eaf96e3ffcdf (patch) | |
tree | 1522b7c2adc228dda7bc9fd3d94c0d1bac9d504c /src/locale | |
parent | 17258f5f27dd3dd57c36f2805e0a0c27a1aeabba (diff) | |
download | systemd-403ed0e5c914f2a0a683403d8ba7eaf96e3ffcdf.tar.gz |
bus-util: support details in CheckAuthorization calls
Extra details for an action can be supplied when calling polkit's
CheckAuthorization method. Details are a list of key/value string pairs.
Custom policy can use these details when making authorization decisions.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/localed.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c index 4fa84df8c0..e304588c58 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -960,6 +960,7 @@ static int method_set_locale(sd_bus_message *m, void *userdata, sd_bus_error *er m, CAP_SYS_ADMIN, "org.freedesktop.locale1.set-locale", + NULL, interactive, UID_INVALID, &c->polkit_registry, @@ -1049,6 +1050,7 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro m, CAP_SYS_ADMIN, "org.freedesktop.locale1.set-keyboard", + NULL, interactive, UID_INVALID, &c->polkit_registry, @@ -1180,6 +1182,7 @@ static int method_set_x11_keyboard(sd_bus_message *m, void *userdata, sd_bus_err m, CAP_SYS_ADMIN, "org.freedesktop.locale1.set-keyboard", + NULL, interactive, UID_INVALID, &c->polkit_registry, |