summaryrefslogtreecommitdiff
path: root/src/libsystemd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-28 15:11:39 +0100
committerLennart Poettering <lennart@poettering.net>2014-10-28 15:11:39 +0100
commitf2288cc63fcd428860479ba43122341c39e3a926 (patch)
tree8b7fc26b1d2b491be082976913fb71f3bc2a999d /src/libsystemd
parent665ea24caf4ca8c4ee32a48cd1b47abaf9ead6c4 (diff)
polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions
Diffstat (limited to 'src/libsystemd')
-rw-r--r--src/libsystemd/sd-bus/bus-util.c3
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