1. 22 Oct, 2007 2 commits
  2. 21 Oct, 2007 3 commits
  3. 18 Oct, 2007 1 commit
  4. 13 Oct, 2007 3 commits
  5. 11 Oct, 2007 1 commit
  6. 27 Sep, 2007 3 commits
    • David Zeuthen's avatar
    • David Zeuthen's avatar
      don't fail on unknown XML tags, just skip them · b420cc51
      David Zeuthen authored
      This change will futureproof libpolkit for extensions; e.g. if there's
      an OS upgrade where
      
       a) the PolicyKit package is upgraded to a version where support for a
          new tag <allow_foo> is added; and
      
       b) another package, using PolicyKit, is upgraded dropping a .policy
          file using the new <allow_foo> tag; then
      
      existing running processes using libpolkit will not fail. They will,
      however, not honor the new tags until the daemon process itself is
      restarted using e.g. condrestart.
      
      We also log to the system logger whenever we encouter unknown tags.
      b420cc51
    • David Zeuthen's avatar
      implement <allow_any> to specify default answer for any user · 4714fe72
      David Zeuthen authored
      This is useful in instances where the OS vendor wants to allow any
      user, even remote users logging in via ssh etc., but recognize that
      some sites may want to lock this down to a limited set of users.
      
      Suggested by Daniel P. Berrange <berrange@redhat.com>:
      
      <danpb>  my specific use case is that in libvirt we don't mind any user
               querying for VM status info by default
      <danpb>  but some admins may wish to lock that ability down
      <danpb>  so only designated users can query VM status
      <davidz> right
      <davidz> it makes sense
      <davidz> without having giving it too much thought; adding another stanza to
               the .policy file might make sense
      <davidz> <allow_non_session>yes</allow_non_session>
      <davidz> danpb: would that work?
      <danpb>  yeah, that'd do the trick
      <davidz> cool
      <davidz> I'll add it then
      4714fe72
  7. 26 Sep, 2007 1 commit
  8. 25 Sep, 2007 1 commit
  9. 10 Sep, 2007 3 commits
  10. 31 Aug, 2007 5 commits
  11. 28 Aug, 2007 1 commit
  12. 27 Aug, 2007 5 commits
  13. 24 Aug, 2007 9 commits
  14. 23 Aug, 2007 2 commits
    • Danny Kukawka's avatar
      fixed compiler warning about uid_t handling · c27e93f7
      Danny Kukawka authored
      This fixes the same problem with uid_t as we had with HAL some time ago
      on 64bit architectures in PolicyKit. This time I removed the useless check:
      
         uid == ((unsigned long) -1)
      
      because this is always false on 64bit (comparison is always false due to
      limited range of data type) and because the DBusError from the
      dbus_bus_get_unix_user() call is set if the function returns DBUS_UID_UNSET
      so we need only to check if the error is set.
      c27e93f7
    • Danny Kukawka's avatar
      fixed code documentation issues · 0d69cdc5
      Danny Kukawka authored
      Fixed code documentation issues:
       * s/<programlisting>/@code/
       * removed @void: from polkit_grant_new()
      0d69cdc5