Allow unprivileged callers to check authorizations
authorDavid Zeuthen <davidz@redhat.com>
Mon, 27 Jul 2009 02:05:38 +0000 (22:05 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 27 Jul 2009 02:05:38 +0000 (22:05 -0400)
commitde0985aaeb9a44090f3cb37e4ea6308c0152797a
treebc9884bf5fb1e5fde401c57fb5771da1e1b1384d
parent52ab38452b2535bec1276bc82bb73b02d138c091
Allow unprivileged callers to check authorizations

But only allow this if

 - the caller and the subject being checked is the same user
 - no details are passed (otherwise dialogs can be spoofed)

Also add a RevokeTemporaryAuthorizationById() method.
data/org.freedesktop.PolicyKit1.Authority.xml
docs/polkit/polkit-1-sections.txt
src/polkit/polkitauthority.c
src/polkit/polkitauthority.h
src/polkit/polkitauthorizationresult.c
src/polkitbackend/polkitbackendauthority.c
src/polkitbackend/polkitbackendauthority.h
src/polkitbackend/polkitbackendinteractiveauthority.c
src/polkitbackend/polkitbackendlocalauthority.c