1. 15 Apr, 2007 1 commit
    • David Zeuthen's avatar
      add grant functionality + lots of other changes · a0570c50
      David Zeuthen authored
       - 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.
  2. 09 Apr, 2007 3 commits
    • David Zeuthen's avatar
      remove all usage of glib from the header files · 192f04ce
      David Zeuthen authored
      This paves the way for getting rid of a glib dependency; when and if
      that happens is to be determined; right now it just doesn't make a lot
      of sense to reimplement GKeyFile, GSList, GHashTable, g_spawn_sync and
      other useful routines. But it might make sense if we want to get the
      message bus daemon to link with libpolkit so you e.g. can say
       <policy polkit="acme-frobnicate">
         <allow send_interface="com.acme.Frobnicator"
      to allow a caller on the system message bus to access that interface
      if, and only if, he can do the "acme-frobnicate" action according to
    • David Zeuthen's avatar
      associate parameters (key/value pairs) with the Action class · 02a4c510
      David Zeuthen authored
      This is useful for letting mechanisms convey information which may be
      useful in making a decision whether an action is OK. For example,
      NetworkManager could use this to provide the phone-number parameter
      with a hypothetical "nm-dialup" action. Then a site or vendor can
      provide insert
       mandatory polkit-run-program.so program="/usr/lib/check-dialup-number.sh" privilege="nm-dialup"
      into /etc/PolicyKit/PolicyKit.conf and have said program check
      in that program.
    • David Zeuthen's avatar
  3. 08 Apr, 2007 9 commits
  4. 07 Apr, 2007 4 commits
  5. 06 Apr, 2007 2 commits
  6. 04 Apr, 2007 5 commits
  7. 29 Mar, 2007 4 commits
  8. 28 Mar, 2007 5 commits
  9. 21 Aug, 2006 2 commits
  10. 29 Jul, 2006 2 commits
  11. 28 Jul, 2006 1 commit
  12. 27 Jul, 2006 1 commit
  13. 07 Jun, 2006 1 commit