1. 30 Jul, 2010 1 commit
  2. 15 Jan, 2010 2 commits
  3. 10 Dec, 2009 1 commit
    • David Zeuthen's avatar
      Bug 25367 — Also read local authority configuration data from /etc · 8e0b9b47
      David Zeuthen authored
      Turns out some people would rather edit local files in /etc rather
      than shipping them in a package (as e.g. Fedora does with the
      polkit-desktop-policy RPM).
      
      This also drops the hard-coded list of directory names such as
      10-vendor.d, 20-org.d - we now monitor the
      /var/lib/polkit-1/localauthority and /etc/polkit-1/localauthority
      directories for changes - whenever we see a subdirectory in any of
      these directories, we create an AuthorizationStore object that looks
      for .pkla files.
      Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
      8e0b9b47
  4. 16 Sep, 2009 1 commit
  5. 13 Sep, 2009 4 commits
  6. 12 Aug, 2009 3 commits
    • David Zeuthen's avatar
      Post-release version bump to 0.95 · 3ee5f0d2
      David Zeuthen authored
      3ee5f0d2
    • David Zeuthen's avatar
      Generate GI gir and typelibs for libpolkit-gobject-1 · a7aacbb5
      David Zeuthen authored
      This includes changing from POSIX types (uid_t, gid_t, pid_t) to
      gint. Won't affect much since the size is the same. And we want this
      anyway since it is needed to build the library on non-POSIX platforms.
      a7aacbb5
    • Joe Clarke's avatar
      Bug 23093 – FreeBSD portability fixes · de9453f4
      Joe Clarke authored
      There are a few issues with building polkit-0.93 on FreeBSD:
      
       * No clearenv() function on FreeBSD
      
       * While FreeBSD has a /proc, it is deprecated, and kinfo_proc should
         be used instead.
      
       * FreeBSD's printf() functions do not support the %m notation.  This
         is only supported for syslog().
      
        * You can't call GINT_TO_POINTER() on a 64-bit value, as this will
          break on 64-bit OSes.
      
      The attached patch fixes these problems.  First, a check for
      clearenv() is added to configure.  Second, I moved the check for
      process uid to polkit/polkitunixprocess.c.  This may not be ideal, but
      it seems to fit, and reduces code duplication.  Third, I replaces all
      %m with %s ... g_strerror (errno).  Finally, I replaced
      GINT_TO_POINTER() with GSIZE_TO_POINTER.
      Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
      de9453f4
  7. 21 Jul, 2009 2 commits
  8. 15 Jul, 2009 1 commit
  9. 13 Jul, 2009 1 commit
  10. 08 Jun, 2009 3 commits
  11. 27 May, 2009 1 commit
  12. 15 May, 2009 1 commit
  13. 10 Feb, 2009 1 commit
  14. 09 Feb, 2009 1 commit
  15. 08 Feb, 2009 2 commits
  16. 02 Feb, 2009 1 commit
  17. 21 Jan, 2009 1 commit
  18. 20 Jan, 2009 2 commits
  19. 19 Jan, 2009 1 commit
  20. 07 Dec, 2008 2 commits
    • David Zeuthen's avatar
      port the .policy file parser and implement EnumerateActions · 14013ef2
      David Zeuthen authored
      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 [
               ]
            }
         ]
      14013ef2
    • David Zeuthen's avatar
      add core polkit actions · 71e3b425
      David Zeuthen authored
      71e3b425
  21. 03 Dec, 2008 1 commit
  22. 06 Nov, 2008 1 commit