rip out the notion of Resources
authorDavid Zeuthen <davidz@redhat.com>
Tue, 19 Jun 2007 19:41:55 +0000 (15:41 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 19 Jun 2007 19:41:55 +0000 (15:41 -0400)
commit169c130d4e517371c64d2c2832d323592d38ea7b
tree7ba0c038820e44ee31fda4573c132ad21b4b55c7
parentb9cf5bca49a2a1fc68002c2a315d94a3adaed51e
rip out the notion of Resources

It makes things a _lot more_ complicated having to deal with resources
and there's a much nicer way to deal with it: Punt it to the apps:

It's much more natural for the application to have a notion about
about what resources are "trusted" (and e.g. requires lesser
privileges) and what resources aren't.

Consider dial-up networking; here the privileged application that
performs the dial-up operation consults a list (maintained by the
system administrator) of allowed numbers to dial. If the unprivileged
networking UI applet that requests a number to be dialed is on the
list it uses the PolicyKit action 'nm-dialup-trusted-location', if it
isn't then it uses the PolicyKit action 'nm-dialup-untrusted-location'.
27 files changed:
doc/api/polkit/polkit-docs.xml
modules/Makefile.am
modules/default/polkit-module-default.c
modules/grant/Makefile.am
modules/grant/polkit-module-grant.c
polkit-dbus/polkit-dbus.c
polkit-dbus/polkit-dbus.h
polkit-grant/Makefile.am
polkit-grant/polkit-grant-helper.c
polkit-grant/polkit-grant.c
polkit-grant/polkit-grant.h
polkit/Makefile.am
polkit/polkit-caller.c
polkit/polkit-context.c
polkit/polkit-context.h
polkit/polkit-module.c
polkit/polkit-module.h
polkit/polkit-policy-default.c
polkit/polkit-policy-default.h
polkit/polkit-policy-file-entry.c
polkit/polkit-policy-file-entry.h
polkit/polkit-resource.c [deleted file]
polkit/polkit-resource.h [deleted file]
polkit/polkit.h
tools/polkit-check-caller.c
tools/polkit-check-session.c
tools/polkit-grant.c