[systemd-commits] src/libsystemd

Lennart Poettering lennart at kemper.freedesktop.org
Tue Oct 28 07:12:21 PDT 2014


 src/libsystemd/sd-bus/bus-util.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f2288cc63fcd428860479ba43122341c39e3a926
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Oct 28 15:11:39 2014 +0100

    polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions

diff --git a/src/libsystemd/sd-bus/bus-util.c b/src/libsystemd/sd-bus/bus-util.c
index b8559e9..43acf5b 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



More information about the systemd-commits mailing list