Remove temporary authorization when the subject it applies to vanishes
authorDavid Zeuthen <davidz@redhat.com>
Wed, 12 Aug 2009 15:52:46 +0000 (11:52 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Wed, 12 Aug 2009 15:52:46 +0000 (11:52 -0400)
commitf1e312653c7c7d3eafcfb6a55b884faa19e5ea5d
treeef56d22c4ae9fbf41dba160b31d3d69d03bb1a13
parent6806b4883077745c3f288cfe679181a61849f97f
Remove temporary authorization when the subject it applies to vanishes

This makes it easier to write the desktop component showing a
notification icon - said component now only needs to watch ::changed
and reenumerate temporary authorizations. If this is done, then the
notification icon is updated in near-realtime.

Also emit ::changed on ConsoleKit changes. This helps remind
Mechanisms that they should redo an authorization check (if this is
how the Mechanism decides to cache authorizations).
src/polkitbackend/polkitbackendinteractiveauthority.c
src/polkitbackend/polkitbackendsessionmonitor.c