platform/upstream/polkit.git
15 years agoPort examples and command-line tools to new API
David Zeuthen [Wed, 13 May 2009 16:30:26 +0000 (12:30 -0400)]
Port examples and command-line tools to new API

15 years agoChange the PolkitAuthorizationResult enumeration into an object
David Zeuthen [Wed, 13 May 2009 16:20:16 +0000 (12:20 -0400)]
Change the PolkitAuthorizationResult enumeration into an object

15 years agoOnly allow privileged apps to check authz and add ActionLookup interface
David Zeuthen [Wed, 13 May 2009 14:58:04 +0000 (10:58 -0400)]
Only allow privileged apps to check authz and add ActionLookup interface

Also remove the ObtainAuthorization() call and allow apps to pass
details to CheckAuthorization.

15 years agoFix D-Bus policy to work with non-permissive D-Bus
David Zeuthen [Mon, 11 May 2009 14:33:44 +0000 (10:33 -0400)]
Fix D-Bus policy to work with non-permissive D-Bus

15 years agoadd a draft version of the porting guide -- WIP
Richard Hughes [Fri, 13 Feb 2009 16:11:24 +0000 (16:11 +0000)]
add a draft version of the porting guide -- WIP

15 years agofix up gtk-doc API markup for a couple of functions
Richard Hughes [Tue, 10 Feb 2009 19:16:31 +0000 (19:16 +0000)]
fix up gtk-doc API markup for a couple of functions

15 years agoinstall gtkdoc HTML in the proper location
David Zeuthen [Tue, 10 Feb 2009 15:45:25 +0000 (10:45 -0500)]
install gtkdoc HTML in the proper location

15 years agopost-release version bump to 0.92
David Zeuthen [Tue, 10 Feb 2009 03:14:07 +0000 (22:14 -0500)]
post-release version bump to 0.92

15 years agomake it possible to define what administrator authentication means 0.91
David Zeuthen [Tue, 10 Feb 2009 02:10:46 +0000 (21:10 -0500)]
make it possible to define what administrator authentication means

We might also want to expose methods on the D-Bus interface
org.freedesktop.PolicyKit1.AuthorityManager to configure this;
implementation-wise we'd just be writing out config files with a fixed
priority.

15 years agoadd security checks for AddAuthorization() and RemoveAuthorization()
David Zeuthen [Mon, 9 Feb 2009 23:57:29 +0000 (18:57 -0500)]
add security checks for AddAuthorization() and RemoveAuthorization()

For now this is restricted to uid 0; going to revisit this when
hacking on the GNOME authorization UI.

15 years agorename grant->add and revoke->remove in the polkit-1 tool
David Zeuthen [Mon, 9 Feb 2009 23:50:07 +0000 (18:50 -0500)]
rename grant->add and revoke->remove in the polkit-1 tool

15 years agoadd security checks for EnumerateAuthorizations
David Zeuthen [Mon, 9 Feb 2009 23:37:25 +0000 (18:37 -0500)]
add security checks for EnumerateAuthorizations

15 years agoremember to dist 50-nullback.conf
David Zeuthen [Mon, 9 Feb 2009 22:27:33 +0000 (17:27 -0500)]
remember to dist 50-nullback.conf

15 years agoprune TODO list and fix up single-header-file / API guard checks
David Zeuthen [Mon, 9 Feb 2009 22:08:53 +0000 (17:08 -0500)]
prune TODO list and fix up single-header-file / API guard checks

15 years agoadd the ObtainAuthorization() method and use in for the 'polkit-1 run' command
David Zeuthen [Mon, 9 Feb 2009 20:53:51 +0000 (15:53 -0500)]
add the ObtainAuthorization() method and use in for the 'polkit-1 run' command

Also add an example for this.

15 years agoload and choose what backend to use; also write a simple null backend
David Zeuthen [Sun, 8 Feb 2009 21:23:45 +0000 (16:23 -0500)]
load and choose what backend to use; also write a simple null backend

The thinking is that if someone wants to turn off PolicyKit, they
simply drop a file /etc/polkit-1/nullbackend.conf.d/99-i-hate-polkit.conf
with the contents

[Configuration]
priority=1000

This also provides a good cut-n-paste template / example etc. of how
to implement a PolicyKit backend.

15 years agoimplement cancellation of authorization checks
David Zeuthen [Sun, 8 Feb 2009 19:22:45 +0000 (14:22 -0500)]
implement cancellation of authorization checks

Also add a short example to test this.

15 years agodon't hardcode the uid, look it up in /proc
David Zeuthen [Sun, 8 Feb 2009 19:10:52 +0000 (14:10 -0500)]
don't hardcode the uid, look it up in /proc

15 years agomake authentication agents pass a session_id parameter
David Zeuthen [Sun, 8 Feb 2009 16:37:35 +0000 (11:37 -0500)]
make authentication agents pass a session_id parameter

The session_id has got to be empty for now. The thinking is that in
the future we might want to register an authentication agent that runs
in secure desktop, e.g. a separate session from the user session.

15 years agogenerate all polkit dbus code in one place
David Zeuthen [Sun, 8 Feb 2009 16:17:04 +0000 (11:17 -0500)]
generate all polkit dbus code in one place

15 years agoupdate for latest EggDBus changes
David Zeuthen [Sat, 7 Feb 2009 21:19:12 +0000 (16:19 -0500)]
update for latest EggDBus changes

15 years agofix up the D-Bus docs somewhat
David Zeuthen [Thu, 5 Feb 2009 20:06:30 +0000 (15:06 -0500)]
fix up the D-Bus docs somewhat

15 years agouse new eggdbus feature to include enums/structs docs in the interface docs
David Zeuthen [Wed, 4 Feb 2009 23:37:26 +0000 (18:37 -0500)]
use new eggdbus feature to include enums/structs docs in the interface docs

15 years agouser proper capitalization for AuthenticationAgent D-Bus interface summary
David Zeuthen [Tue, 3 Feb 2009 05:48:56 +0000 (00:48 -0500)]
user proper capitalization for AuthenticationAgent D-Bus interface summary

15 years agoadd docs for the AuthenticationAgent D-Bus interface
David Zeuthen [Tue, 3 Feb 2009 05:47:35 +0000 (00:47 -0500)]
add docs for the AuthenticationAgent D-Bus interface

15 years agoadd docs for the AuthorityManager D-Bus interface
David Zeuthen [Tue, 3 Feb 2009 05:30:59 +0000 (00:30 -0500)]
add docs for the AuthorityManager D-Bus interface

15 years agoadd docs for the Authority D-Bus interface
David Zeuthen [Tue, 3 Feb 2009 05:20:41 +0000 (00:20 -0500)]
add docs for the Authority D-Bus interface

15 years agodepend on EggDBus HEAD for stamp file and Docbook docs for D-Bus interfaces
David Zeuthen [Tue, 3 Feb 2009 04:49:17 +0000 (23:49 -0500)]
depend on EggDBus HEAD for stamp file and Docbook docs for D-Bus interfaces

make -j4 should work now

15 years agopost-release version bump to 0.91
David Zeuthen [Mon, 2 Feb 2009 18:54:27 +0000 (13:54 -0500)]
post-release version bump to 0.91

Better late than never...

15 years agoadd docs for PolkitBackendAuthority
David Zeuthen [Mon, 2 Feb 2009 01:44:43 +0000 (20:44 -0500)]
add docs for PolkitBackendAuthority

15 years agorework backend API
David Zeuthen [Mon, 2 Feb 2009 00:01:11 +0000 (19:01 -0500)]
rework backend API

15 years agoadd API docs for PolkitAuthority
David Zeuthen [Sun, 1 Feb 2009 21:18:25 +0000 (16:18 -0500)]
add API docs for PolkitAuthority

Also slightly rearrange the doc layout.

15 years agoreplace PolkitBackendServer with polkit_backend_register_authority()
David Zeuthen [Sun, 1 Feb 2009 19:01:59 +0000 (14:01 -0500)]
replace PolkitBackendServer with polkit_backend_register_authority()

This is consistent with how the PolkitAgentListener API works.

15 years agomove management functions to a separate D-Bus interface and GObject class
David Zeuthen [Sun, 1 Feb 2009 18:26:53 +0000 (13:26 -0500)]
move management functions to a separate D-Bus interface and GObject class

This will allow us, in the near future, to declare org.fd.PK1.Authority and
PolkitAuthority as stable while allowing changes to how we manage the (local)
authority even after 1.0.

15 years agorequire POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE to be defined
David Zeuthen [Sun, 1 Feb 2009 17:39:21 +0000 (12:39 -0500)]
require POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE to be defined

Also use @stability in the docs to indicate that the interface is
currently subject to change.

15 years agofix up polkitagent docs
David Zeuthen [Sat, 31 Jan 2009 21:17:27 +0000 (16:17 -0500)]
fix up polkitagent docs

15 years agoadd docs for PolkitAgentListener
David Zeuthen [Sat, 31 Jan 2009 20:41:05 +0000 (15:41 -0500)]
add docs for PolkitAgentListener

15 years agocollapse request into a single signal and add docs for PolkitAgentSession
David Zeuthen [Sat, 31 Jan 2009 19:21:53 +0000 (14:21 -0500)]
collapse request into a single signal and add docs for PolkitAgentSession

15 years agoadd more debug and work around what looks like a bug in fflush(3)
David Zeuthen [Sat, 31 Jan 2009 18:21:49 +0000 (13:21 -0500)]
add more debug and work around what looks like a bug in fflush(3)

15 years agorework API of polkitagent
David Zeuthen [Sat, 31 Jan 2009 01:23:02 +0000 (20:23 -0500)]
rework API of polkitagent

still a work in progress, supporting multiple identities (wheel style auth) is 99% complete.

15 years agofix up debug/error messages for the authentication agent
David Zeuthen [Thu, 29 Jan 2009 17:28:34 +0000 (12:28 -0500)]
fix up debug/error messages for the authentication agent

15 years agoclean up trailing whitespace in TODO file
David Zeuthen [Thu, 29 Jan 2009 17:17:30 +0000 (12:17 -0500)]
clean up trailing whitespace in TODO file

15 years agoupdate docs/TODO with TODOs from the source code
Matthias Clasen [Wed, 28 Jan 2009 22:58:02 +0000 (17:58 -0500)]
update docs/TODO with TODOs from the source code

15 years agotrivial cleanup
Matthias Clasen [Thu, 29 Jan 2009 04:25:31 +0000 (23:25 -0500)]
trivial cleanup

Remove a leftover TODO and assignment.

15 years agowrite HACKING file
David Zeuthen [Wed, 28 Jan 2009 15:35:10 +0000 (10:35 -0500)]
write HACKING file

15 years agofill out sections about subject/identity in the man page
Matthias Clasen [Wed, 28 Jan 2009 03:18:37 +0000 (22:18 -0500)]
fill out sections about subject/identity in the man page

Signed-off-by: David Zeuthen <davidz@redhat.com>
15 years agolimit Change() signal storm by looking at the file monitor event
David Zeuthen [Tue, 27 Jan 2009 22:24:41 +0000 (17:24 -0500)]
limit Change() signal storm by looking at the file monitor event

15 years agoadd Changed() signal that is fired when actions/authorizations change
David Zeuthen [Tue, 27 Jan 2009 20:09:32 +0000 (15:09 -0500)]
add Changed() signal that is fired when actions/authorizations change

15 years agoremove debug spew for 'run' command in polkit-1
David Zeuthen [Tue, 27 Jan 2009 19:23:23 +0000 (14:23 -0500)]
remove debug spew for 'run' command in polkit-1

15 years agomake authentication agents reconnect if polkitd-1 is restarted
David Zeuthen [Tue, 27 Jan 2009 19:09:15 +0000 (14:09 -0500)]
make authentication agents reconnect if polkitd-1 is restarted

15 years agoadd TODO item about having the authentication agent reconnect
David Zeuthen [Tue, 27 Jan 2009 18:40:54 +0000 (13:40 -0500)]
add TODO item about having the authentication agent reconnect

15 years agoadd a TODO item about the need for file monitors
David Zeuthen [Tue, 27 Jan 2009 18:16:54 +0000 (13:16 -0500)]
add a TODO item about the need for file monitors

15 years agoimplement 'run' command for polkit-1
David Zeuthen [Tue, 27 Jan 2009 17:57:10 +0000 (12:57 -0500)]
implement 'run' command for polkit-1

15 years agoadd TODO item about being able to cancel a CheckAuthorization() call
David Zeuthen [Tue, 27 Jan 2009 16:44:18 +0000 (11:44 -0500)]
add TODO item about being able to cancel a CheckAuthorization() call

15 years agoupdate TODO list
David Zeuthen [Tue, 27 Jan 2009 16:06:06 +0000 (11:06 -0500)]
update TODO list

15 years agoremove TODO item about moving commits to main repo as this is done
David Zeuthen [Tue, 27 Jan 2009 15:59:10 +0000 (10:59 -0500)]
remove TODO item about moving commits to main repo as this is done

15 years agoMerge branch 'master' of /home/davidz/Hacking/polkit
David Zeuthen [Tue, 27 Jan 2009 15:52:09 +0000 (10:52 -0500)]
Merge branch 'master' of /home/davidz/Hacking/polkit

15 years agoprepare for merge of rewritten PolicyKit
David Zeuthen [Tue, 27 Jan 2009 15:51:10 +0000 (10:51 -0500)]
prepare for merge of rewritten PolicyKit

15 years agosplit core TODO items into separate groups for core and backend
David Zeuthen [Mon, 26 Jan 2009 21:40:43 +0000 (16:40 -0500)]
split core TODO items into separate groups for core and backend

15 years agoupdate TODO list
David Zeuthen [Mon, 26 Jan 2009 21:33:27 +0000 (16:33 -0500)]
update TODO list

15 years agostart writing a TODO list
David Zeuthen [Mon, 26 Jan 2009 17:20:54 +0000 (12:20 -0500)]
start writing a TODO list

15 years agoalso dist org.freedesktop.ConsoleKit.xml
Richard Hughes [Mon, 26 Jan 2009 17:06:50 +0000 (12:06 -0500)]
also dist org.freedesktop.ConsoleKit.xml

15 years agofix 'make distcheck'
David Zeuthen [Wed, 21 Jan 2009 06:31:34 +0000 (01:31 -0500)]
fix 'make distcheck'

15 years agofix up docs
David Zeuthen [Wed, 21 Jan 2009 06:01:58 +0000 (01:01 -0500)]
fix up docs

15 years agofinish authentication agent integration
David Zeuthen [Wed, 21 Jan 2009 05:27:13 +0000 (00:27 -0500)]
finish authentication agent integration

Yay, it works!

15 years agoadd more infrastructure for authentication agent integration
David Zeuthen [Tue, 20 Jan 2009 23:29:29 +0000 (18:29 -0500)]
add more infrastructure for authentication agent integration

15 years agohonor implicit authorizations
David Zeuthen [Tue, 20 Jan 2009 23:04:49 +0000 (18:04 -0500)]
honor implicit authorizations

Yay, only major bit remaining now is to call out to the authentication
agent on CHALLENGE...

15 years agoadd enumeration and handling of implicit authorizations
David Zeuthen [Tue, 20 Jan 2009 21:18:18 +0000 (16:18 -0500)]
add enumeration and handling of implicit authorizations

Now to actually use them...

15 years agoimplement UnregisterAuthenticationAgent()
David Zeuthen [Tue, 20 Jan 2009 20:05:59 +0000 (15:05 -0500)]
implement UnregisterAuthenticationAgent()

15 years agoadd infrastructure for registering/unregistering authentication agents
David Zeuthen [Tue, 20 Jan 2009 19:56:28 +0000 (14:56 -0500)]
add infrastructure for registering/unregistering authentication agents

15 years agoadd a hash() method to the Subject interface
David Zeuthen [Tue, 20 Jan 2009 18:31:41 +0000 (13:31 -0500)]
add a hash() method to the Subject interface

15 years agoremember to install polkittypes.h
David Zeuthen [Tue, 20 Jan 2009 18:30:50 +0000 (13:30 -0500)]
remember to install polkittypes.h

15 years agofirst cut at authentication helper library
David Zeuthen [Tue, 20 Jan 2009 05:36:25 +0000 (00:36 -0500)]
first cut at authentication helper library

Not finished yet...

15 years agoadd pkgconfig files
David Zeuthen [Tue, 20 Jan 2009 05:35:43 +0000 (00:35 -0500)]
add pkgconfig files

15 years agoadd buildsys stuff for authentication library support
David Zeuthen [Tue, 20 Jan 2009 00:40:34 +0000 (19:40 -0500)]
add buildsys stuff for authentication library support

15 years agorestrict add/remove of temporary authorizations to users
David Zeuthen [Tue, 20 Jan 2009 00:08:10 +0000 (19:08 -0500)]
restrict add/remove of temporary authorizations to users

15 years agorename check_temporary_authorization_for_subject() to something more logical
David Zeuthen [Tue, 20 Jan 2009 00:03:07 +0000 (19:03 -0500)]
rename check_temporary_authorization_for_subject() to something more logical

15 years agomake it possible to grant/revoke/use authorizations from groups
David Zeuthen [Tue, 20 Jan 2009 00:00:08 +0000 (19:00 -0500)]
make it possible to grant/revoke/use authorizations from groups

15 years agoimplement adding/removing temporary authorizations
David Zeuthen [Mon, 19 Jan 2009 23:34:40 +0000 (18:34 -0500)]
implement adding/removing temporary authorizations

15 years agoimplement grant and revoke for permanent authorizations
David Zeuthen [Mon, 19 Jan 2009 22:48:09 +0000 (17:48 -0500)]
implement grant and revoke for permanent authorizations

15 years agomake CheckAuthorization() use permanent authorizations on disk
David Zeuthen [Mon, 19 Jan 2009 21:45:49 +0000 (16:45 -0500)]
make CheckAuthorization() use permanent authorizations on disk

15 years agobegin writing the implementation of the local authorization backend
David Zeuthen [Mon, 19 Jan 2009 21:29:35 +0000 (16:29 -0500)]
begin writing the implementation of the local authorization backend

15 years agoadd a hash() method to PolkitIdentity
David Zeuthen [Mon, 19 Jan 2009 21:28:59 +0000 (16:28 -0500)]
add a hash() method to PolkitIdentity

15 years agoforgot to add new PolkitIdentity interface
David Zeuthen [Mon, 19 Jan 2009 19:53:48 +0000 (14:53 -0500)]
forgot to add new PolkitIdentity interface

15 years agosplit Subject into Subject and Identity and revise API
David Zeuthen [Mon, 19 Jan 2009 19:52:46 +0000 (14:52 -0500)]
split Subject into Subject and Identity and revise API

... also remove EnumerateSessions

15 years agoadd remaining glue for {Add,Remove,Enumerate}Authorization
David Zeuthen [Mon, 19 Jan 2009 01:37:02 +0000 (20:37 -0500)]
add remaining glue for {Add,Remove,Enumerate}Authorization

Now to finish implementing the local files backend....

15 years agorename CheckClaim() to CheckAuthorization()
David Zeuthen [Sun, 18 Jan 2009 21:14:39 +0000 (16:14 -0500)]
rename CheckClaim() to CheckAuthorization()

Also get rid of AuthorizationClaim type and add D-Bus prototypes for a
couple of other methods.

15 years agoslighty fix up docs
David Zeuthen [Sun, 18 Jan 2009 19:39:05 +0000 (14:39 -0500)]
slighty fix up docs

15 years agoadd checks for whether someone is authorized to check authorizations
David Zeuthen [Sun, 18 Jan 2009 19:20:51 +0000 (14:20 -0500)]
add checks for whether someone is authorized to check authorizations

15 years agoadd PolkitUnixSession and associcated functions
David Zeuthen [Fri, 16 Jan 2009 19:41:48 +0000 (14:41 -0500)]
add PolkitUnixSession and associcated functions

15 years agoremove attributes from AuthorizationClaim and CheckClaim()
David Zeuthen [Fri, 16 Jan 2009 17:54:11 +0000 (12:54 -0500)]
remove attributes from AuthorizationClaim and CheckClaim()

15 years agoimplement 'polkit-1 list authorizations'
David Zeuthen [Fri, 16 Jan 2009 17:25:09 +0000 (12:25 -0500)]
implement 'polkit-1 list authorizations'

15 years agoadd async versions of PolkitAuthority methods
David Zeuthen [Thu, 15 Jan 2009 17:13:59 +0000 (12:13 -0500)]
add async versions of PolkitAuthority methods

15 years agorudimentary monitoring of seats and sessions
David Zeuthen [Tue, 13 Jan 2009 23:37:59 +0000 (18:37 -0500)]
rudimentary monitoring of seats and sessions

Will add public API a'la

 gboolean polkit_session_monitor_is_subject_active ();

as needed.

15 years agostart writing a SessionMonitor class
David Zeuthen [Tue, 13 Jan 2009 21:27:54 +0000 (16:27 -0500)]
start writing a SessionMonitor class

15 years agoadd debug for each CheckClaim() call
David Zeuthen [Mon, 12 Jan 2009 22:41:18 +0000 (17:41 -0500)]
add debug for each CheckClaim() call

15 years agoadd infrastructure for CheckClaim() method
David Zeuthen [Mon, 12 Jan 2009 21:54:54 +0000 (16:54 -0500)]
add infrastructure for CheckClaim() method

15 years agointroduce a PendingCall type to make all backend operations async
David Zeuthen [Mon, 12 Jan 2009 21:06:24 +0000 (16:06 -0500)]
introduce a PendingCall type to make all backend operations async

15 years agoadd polkit_unix_user_new_for_name()
David Zeuthen [Mon, 12 Jan 2009 18:00:35 +0000 (13:00 -0500)]
add polkit_unix_user_new_for_name()

15 years agoimprove output when enumerating actions using --verbose
David Zeuthen [Mon, 12 Jan 2009 16:35:03 +0000 (11:35 -0500)]
improve output when enumerating actions using --verbose