add grant functionality + lots of other changes
authorDavid Zeuthen <davidz@redhat.com>
Sun, 15 Apr 2007 22:51:19 +0000 (18:51 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 15 Apr 2007 22:51:19 +0000 (18:51 -0400)
commita0570c50359b7044c38c46fd0527bb8bcb45e271
tree159142874e62d826f86c6a7af5a8c6bc23bf8306
parent192f04cef946c0ebe5f90c8dbecc933b6ac3c197
add grant functionality + lots of other changes

 - Split libpolkit into three libraries
   - libpolkit : to be used only by mechanisms and modules
   - libpolkit-dbus : utility library for libpolkit to get caller, session
                      etc. info from the bus and ConsoleKit
   - libpolkit-grant : client side library for obtaining privileges; uses
                       a setgid helper internally

 - grant functionality
   - a helper library, libpolkit-grant, to gain privileges
     - includes a setgid $POLKIT_GROUP helper to write granted privileges
   - a PK module, to read and interpret granted privileges
   - a cmdline app, polkit-grant, using said library

 - Other changes
   - so it turns out that sizeof(bool) != sizeof(gboolean), sizeof(dbus_bool_t)
     This blows so define our own polkit_bool_t type
   - add some validation routines

The grant functionality, especially the setgid helper needs thorough
security review before we can release it.
62 files changed:
Makefile.am
configure.in
doc/api/Makefile.am
doc/api/libpolkit-dbus/Makefile.am [new file with mode: 0644]
doc/api/libpolkit-dbus/libpolkit-dbus-docs.xml [new file with mode: 0644]
doc/api/libpolkit-dbus/libpolkit-dbus.types [new file with mode: 0644]
doc/api/libpolkit-dbus/version.xml [new file with mode: 0644]
doc/api/libpolkit-grant/Makefile.am [new file with mode: 0644]
doc/api/libpolkit-grant/libpolkit-grant-docs.xml [new file with mode: 0644]
doc/api/libpolkit-grant/libpolkit-grant.types [new file with mode: 0644]
doc/api/libpolkit-grant/version.xml [new file with mode: 0644]
doc/api/libpolkit/libpolkit-docs.xml
libpolkit-dbus/Makefile.am [new file with mode: 0644]
libpolkit-dbus/libpolkit-dbus.c [new file with mode: 0644]
libpolkit-dbus/libpolkit-dbus.h [new file with mode: 0644]
libpolkit-grant/Makefile.am [new file with mode: 0644]
libpolkit-grant/libpolkit-grant.c [new file with mode: 0644]
libpolkit-grant/libpolkit-grant.h [new file with mode: 0644]
libpolkit-grant/polkit-grant-helper.c [new file with mode: 0644]
libpolkit.pc.in
libpolkit/Makefile.am
libpolkit/libpolkit-action.c
libpolkit/libpolkit-action.h
libpolkit/libpolkit-caller.c
libpolkit/libpolkit-caller.h
libpolkit/libpolkit-context.c
libpolkit/libpolkit-context.h
libpolkit/libpolkit-debug.c
libpolkit/libpolkit-error.c
libpolkit/libpolkit-error.h
libpolkit/libpolkit-module.c
libpolkit/libpolkit-module.h
libpolkit/libpolkit-policy-cache.h
libpolkit/libpolkit-policy-default.c
libpolkit/libpolkit-policy-default.h
libpolkit/libpolkit-policy-file-entry.h
libpolkit/libpolkit-policy-file.h
libpolkit/libpolkit-resource.c
libpolkit/libpolkit-resource.h
libpolkit/libpolkit-result.c
libpolkit/libpolkit-result.h
libpolkit/libpolkit-seat.c
libpolkit/libpolkit-seat.h
libpolkit/libpolkit-session.c
libpolkit/libpolkit-session.h
libpolkit/libpolkit-types.h [new file with mode: 0644]
libpolkit/libpolkit-utils.c [new file with mode: 0644]
libpolkit/libpolkit-utils.h [new file with mode: 0644]
libpolkit/libpolkit.h
modules/Makefile.am
modules/PolicyKit.conf
modules/allow-all/polkit-module-allow-all.c
modules/default/polkit-module-default.c
modules/deny-all/polkit-module-deny-all.c
modules/grant/Makefile.am [new file with mode: 0644]
modules/grant/polkit-module-grant.c [new file with mode: 0644]
modules/run-program/polkit-module-run-program.c
tools/Makefile.am
tools/polkit-check-caller.c
tools/polkit-check-session.c
tools/polkit-grant.c [new file with mode: 0644]
tools/polkit-policy-file-validate.c