mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
polkit: actually generate new InteractiveAuthorizationRequired error on the right occasions
This commit is contained in:
parent
665ea24caf
commit
f2288cc63f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user