add module loading to PolicyKit
authorDavid Zeuthen <davidz@redhat.com>
Sun, 8 Apr 2007 06:07:42 +0000 (02:07 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 8 Apr 2007 06:07:42 +0000 (02:07 -0400)
commit3638c6c15eb33ec64559dc9f075c3f82f9cbcb66
treed076c76c3641a5a44e4df5e7447e32185b9233d9
parenta1b5a12bd768c2d34d33c24af1853a424b875527
add module loading to PolicyKit

This paves the way for writing

 1. A module that tracks temporary (look in /var/run) and permanent (look
    in /var/lib) privilege grants
 2. A D-Bus service to authenticate a client to obtain to a privilege
    grant and then writing the grant in temporary or permanent storage

Also, this feature lets people very easily lock down the system; just
edit /etc/PolicyKit/PolicyKit.conf; add pam-module-deny-all / -allow-all
stanzas with various privilege=<regexp> and user=<username> options.
30 files changed:
Makefile.am
configure.in
doc/api/libpolkit/libpolkit-docs.xml
doc/man/Makefile.am
doc/man/PolicyKit.8.in [new file with mode: 0644]
doc/man/polkit-check-caller.1.in
doc/man/polkit-check-session.1.in
doc/man/polkit-module-allow-all.8.in [new file with mode: 0644]
doc/man/polkit-module-default.8.in [new file with mode: 0644]
doc/man/polkit-module-deny-all.8.in [new file with mode: 0644]
doc/man/polkit-privilege-file-validate.1.in
libpolkit/Makefile.am
libpolkit/libpolkit-context.c
libpolkit/libpolkit-context.h
libpolkit/libpolkit-debug.c
libpolkit/libpolkit-module.c [new file with mode: 0644]
libpolkit/libpolkit-module.h [new file with mode: 0644]
libpolkit/libpolkit-result.c
libpolkit/libpolkit-result.h
libpolkit/libpolkit.c [deleted file]
libpolkit/libpolkit.h
modules/Makefile.am [new file with mode: 0644]
modules/PolicyKit.conf [new file with mode: 0644]
modules/allow-all/Makefile.am [new file with mode: 0644]
modules/allow-all/polkit-module-allow-all.c [new file with mode: 0644]
modules/default/Makefile.am [new file with mode: 0644]
modules/default/polkit-module-default.c [new file with mode: 0644]
modules/deny-all/Makefile.am [new file with mode: 0644]
tools/polkit-check-caller.c
tools/polkit-check-session.c