diff options
author | Daniel Mack <daniel@zonque.org> | 2015-04-20 15:19:26 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-04-24 17:48:12 +0200 |
commit | b7aa9589e0bf37cd2682dee4528bd32a794d1363 (patch) | |
tree | aac0d927b3a5b7836276001c1183601d3f3f0b28 /src/shared/conf-files.h | |
parent | 905f0a39ae65010d5229c76b0c54d8a8a8eb56d5 (diff) |
logind: factor out polkit checks
Factor out the code to ask polkit for authorization from
method_do_shutdown_or_sleep() into an own function called
verify_shutdown_creds().
This is needed in order to also use the same checks when shutdown
operations are scheduled. For that, it's also necessary to allow
NULL values for that action{,_multiple_sessions,_ignore_inhibit)
arguments, which will suppress the call if no action string is
passed.
Diffstat (limited to 'src/shared/conf-files.h')
0 files changed, 0 insertions, 0 deletions