diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-28 15:11:39 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-28 15:11:39 +0100 |
commit | f2288cc63fcd428860479ba43122341c39e3a926 (patch) | |
tree | 8b7fc26b1d2b491be082976913fb71f3bc2a999d /src/libsystemd/sd-bus | |
parent | 665ea24caf4ca8c4ee32a48cd1b47abaf9ead6c4 (diff) |
polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r-- | src/libsystemd/sd-bus/bus-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c index b8559e9826..43acf5b959 100644 --- a/src/libsystemd/sd-bus/bus-util.c +++ b/src/libsystemd/sd-bus/bus-util.c @@ -382,6 +382,9 @@ int bus_verify_polkit_async( if (authorized) return 1; + if (challenge) + return sd_bus_error_set(error, SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED, "Interactive authentication required."); + return -EACCES; } #endif |