platform/upstream/polkit.git
15 years agoslightly rework commandline tool
David Zeuthen [Tue, 6 Jan 2009 19:14:12 +0000 (14:14 -0500)]
slightly rework commandline tool

15 years agoforgot to add polkitprivate.h
David Zeuthen [Tue, 6 Jan 2009 18:42:42 +0000 (13:42 -0500)]
forgot to add polkitprivate.h

15 years agoforgot to add polkittypes.h
David Zeuthen [Tue, 6 Jan 2009 18:42:16 +0000 (13:42 -0500)]
forgot to add polkittypes.h

15 years agoupdate to latest EggDBus and rework how things are done
David Zeuthen [Tue, 6 Jan 2009 18:35:24 +0000 (13:35 -0500)]
update to latest EggDBus and rework how things are done

15 years agokeep up with EggDBus HEAD, in the removal of _async() and addition of sync()
David Zeuthen [Mon, 8 Dec 2008 06:33:00 +0000 (01:33 -0500)]
keep up with EggDBus HEAD, in the removal of _async() and addition of sync()

http://cgit.freedesktop.org/~david/eggdbus/commit/?id=27afdc7a49ee49290e048364500d5c549f8ac614

15 years agorework AuthorizationClaim to be a GInterface so we can pass it over D-Bus
David Zeuthen [Sun, 7 Dec 2008 22:55:36 +0000 (17:55 -0500)]
rework AuthorizationClaim to be a GInterface so we can pass it over D-Bus

15 years agofix up namespacing for backend
David Zeuthen [Sun, 7 Dec 2008 21:59:50 +0000 (16:59 -0500)]
fix up namespacing for backend

the namespace is PolkitBackend so use POLKIT_BACKEND_TYPE rather than
POLKIT_TYPE_BACKEND.

15 years agoport the .policy file parser and implement EnumerateActions
David Zeuthen [Sun, 7 Dec 2008 21:44:11 +0000 (16:44 -0500)]
port the .policy file parser and implement EnumerateActions

Also added Danish translations to test that translations work

$ dbus-send --system --print-reply --dest=org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority org.freedesktop.PolicyKit1.Authority.EnumerateActions string:da
method return sender=:1.4481 -> dest=:1.4483 reply_serial=2
   array [
      struct {
         string "org.freedesktop.policykit.modify-defaults"
         string "Konfigurer implicit autorisering"
         string "Autentificering er påkrævet for ændre implicit autorisering"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
      struct {
         string "org.freedesktop.policykit.read"
         string "Læs andre brugers autoriseringer"
         string "Autentificering er påkrævet for at læse andre brugers autoriseringer"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
            dict entry(
               string "org.freedesktop.PolicyKit.run-as-superuser.path"
               string "/usr/bin/BlahBlaster"
            )
         ]
      }
      struct {
         string "org.freedesktop.policykit.grant"
         string "Autoriser en anden bruger"
         string "Autentificering er påkrævet for at autorisere andre brugere"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
      struct {
         string "org.freedesktop.policykit.revoke"
         string "Fjern autorisering fra en anden bruger"
         string "Autentificering er påkrævet for at fjerne en autosering fra en anden bruger"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
   ]

$ dbus-send --system --print-reply --dest=org.freedesktop.PolicyKit1 /org/freedesktop/PolicyKit1/Authority org.freedesktop.PolicyKit1.Authority.EnumerateActions string:
method return sender=:1.4481 -> dest=:1.4484 reply_serial=2
   array [
      struct {
         string "org.freedesktop.policykit.modify-defaults"
         string "Modify defaults for implicit authorizations"
         string "Authentication is required to modify the defaults for implicit authorizations"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
      struct {
         string "org.freedesktop.policykit.read"
         string "Read authorizations of other users"
         string "Authentication is required to read authorizations of other users"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
            dict entry(
               string "org.freedesktop.PolicyKit.run-as-superuser.path"
               string "/usr/bin/BlahBlaster"
            )
         ]
      }
      struct {
         string "org.freedesktop.policykit.grant"
         string "Grant authorizations to other users"
         string "Authentication is required to grant authorizations to other users"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
      struct {
         string "org.freedesktop.policykit.revoke"
         string "Revoke authorizations from other users"
         string "Authentication is required to revoke authorizations other users"
         string "The PolicyKit Project"
         string "http://hal.freedesktop.org/docs/PolicyKit/"
         string ""
         array [
         ]
      }
   ]

15 years agoadd core polkit actions
David Zeuthen [Sun, 7 Dec 2008 19:14:19 +0000 (14:14 -0500)]
add core polkit actions

15 years agoadd a ActionPool class and rename BackendLocal to BackendLocalAuthority
David Zeuthen [Sun, 7 Dec 2008 19:01:50 +0000 (14:01 -0500)]
add a ActionPool class and rename BackendLocal to BackendLocalAuthority

15 years agoturn PolkitActionDescription into an user defined struct
David Zeuthen [Sun, 7 Dec 2008 18:14:08 +0000 (13:14 -0500)]
turn PolkitActionDescription into an user defined struct

Now to port the XML parser and land it in polkitbackend so backends
can easily implement EnumerateActions().

15 years agouse eggdbus to generate the AuthorizationResult enumeration
David Zeuthen [Sun, 7 Dec 2008 17:38:40 +0000 (12:38 -0500)]
use eggdbus to generate the AuthorizationResult enumeration

15 years agofix up gtkdoc cleaning
David Zeuthen [Sun, 7 Dec 2008 17:32:35 +0000 (12:32 -0500)]
fix up gtkdoc cleaning

15 years agochange code style to be like GLib and generate error domain
David Zeuthen [Sun, 7 Dec 2008 17:26:19 +0000 (12:26 -0500)]
change code style to be like GLib and generate error domain

Also port to use non-reffing structs in EggDBus HEAD.

15 years agoupdate for arg shuffling in EggDBus HEAD
David Zeuthen [Thu, 4 Dec 2008 01:46:17 +0000 (20:46 -0500)]
update for arg shuffling in EggDBus HEAD

15 years agoimplement EnumerateUsers()
David Zeuthen [Thu, 4 Dec 2008 00:01:07 +0000 (19:01 -0500)]
implement EnumerateUsers()

15 years agoforgot to add local backend impl
David Zeuthen [Wed, 3 Dec 2008 19:01:12 +0000 (14:01 -0500)]
forgot to add local backend impl

15 years agostart using EggDBus
David Zeuthen [Wed, 3 Dec 2008 18:59:12 +0000 (13:59 -0500)]
start using EggDBus

16 years agofix up autogen.sh
David Zeuthen [Thu, 6 Nov 2008 15:45:31 +0000 (10:45 -0500)]
fix up autogen.sh

16 years agoinitial commit
David Zeuthen [Thu, 6 Nov 2008 15:43:38 +0000 (10:43 -0500)]
initial commit