PolicyKit: Changes to 'refs/tags/POLICY_KIT_0_7'

David Zeuthen david at kemper.freedesktop.org
Wed Dec 5 21:13:14 PST 2007


Tag 'POLICY_KIT_0_7' created by David Zeuthen <davidz at redhat.com> at 2007-12-06 05:09 -0800

PolicyKit 0.7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBHV4QbKn8s4BN7nF4RAqArAKDB3/87FJ2nq3pOffAxMi0W3D6YXQCgpw/j
hvA5QWQdXAmvlfRlBSTmMwU=
=AIPW
-----END PGP SIGNATURE-----

Changes since POLICY_KIT_0_6:
David Zeuthen (126):
      add the convenience class PolKitTracker
      add id's so the generated HTML has stable and predictable file names
      post-release version bump
      add support to PolKitTracker for also asking on pid
      add C++ include guards and a new method to get pfe's by annotation
      avoid including regex.h from a public header file
      don't spew debug output in libpolkit-dbus
      work on the docs
      use the Since: tag so gtk-doc can print what symbols are new in 0.7
      add docs for POLKIT_[BEGIN|END]_DECLS and also add POLKIT_GNUC_DEPRECATED
      create an API for interfacing with the Authorization Database
      move POLKIT_GNUC_DEPRECATED to a separate line so gtk-doc is happy
      remember to set uid on PolKitSession
      rewrite authorization database and polkit-grant (now known as polkit-auth)
      make the authdb pluggable and add a dummy backend as an example
      move all private functions into a private header file
      move Linux specific code into a single file
      minor build system and doc fixes
      let authdb backends synthesize policy file entries
      fix build with dummy backend
      fix docs
      fix uid retrival when getting auths from all users
      use _destroy, not _unref for hash tables
      rearrange the docs so all API is in one section
      move authdb write functions to libpolkit-grant
      provide a polkit D-Bus service that is activated on demand
      remember to reset killtimer and fix an error message
      avoid defining the same functions in both libpolkit and libpolkit-grant
      rename revoke_if_oneshot to is_mechanism and also expose this on D-Bus
      make polkit_context_is_[caller|session]_authorized() take a PolKitError
      introduce one-shot authorizations
      updated TODO list
      add unit test framework with gcov coverage support (make check-coverage)
      extend test coverage for PolKitAction
      remove dead code
      add tests for PolKitError
      implement OOM testing
      add unit tests for PolKitResult
      add unit tests for PolKitSeat
      add unit tests for PolKitSession
      add unit tests for PolKitCaller
      add unit tests for PolKitPolicyDefault
      add unit tests for PolKitPolicyFileEntry
      implement our own hash table with 100% test coverage
      export memory mangement and hash table functions
      implement polkit_hash_foreach
      improve coverage of PolKitPolicyFileEntry by switching to PolKitHashTable
      add unit tests for PolKitPolicyFile and add some features to PolKitHash
      fix some unaligned access bugs
      increase test coverage for PolKitPolicyFile
      also dist test .policy files
      hook up expat to use our memory handling API
      add doubly-linked lists
      reimplement string hashing and comparison
      move all library source to a src/ directory
      fix build with all library soruce in src/
      add some gtk-doc to private bits to get doc coverage to 100%
      add test case for PolKitError to get to 100%
      use unique action names
      add unit tests of PolKitPolicyCache
      forgot to add src/Makefile.am
      add unit tests for PolKitAuthorizationConstraint
      add unit tests for PolKitAuthorization
      split utility bits into a private statically linked library
      also include libkit in top-level coverage report
      add strsplit function
      use kit_strsplit in polkit-sysdeps
      add (empty, for now) tests for remaining files
      add spawn function to libkit
      actually include the files with the spawn functions
      don't overflow when splitting a string
      remove glib dependency from libpolkit.so
      tweak how we do coverage reporting
      also check for file descriptor leaks
      fix build for dummy backend
      add unit test framework to the rest of the library sources
      build system fixes and refuse to install if built with --enable-tests
      create /var/lib/misc on 'make install'
      fix parallel build
      fix a grave bug where the wrong authorizations were returned
      add API for overriding defaults and make polkit-action(1) use this API.
      restrict new API to the default backend only
      add support for vendor, vendor_url and icon_name tags in .policy files
      provide convenience functions for auth checking and port helpers to use them
      require org.fd.pk.revoke to revoke auths for self if granted by someone else
      export the policydir in the .pc file
      add support for negative authorizations
      provide a way to force a reload of all caches etc.
      make PolKitAuthorization a bit more future proof by adding get_type()
      define abstract Authentication Agent interface and make polkit-auth(1) use it
      remove Since gtk-doc tags from the internal libkit library
      fix 'make check-coverage'
      make dummy backend work
      add support for percent encoding/decoding and colon separated kv-lists
      set errno to ENOMEM when forcibly failing an allocation
      rework the .auths file format to use key/value pairs and make it future-proof
      also encode \n\r\t characters
      update TODO
      avoid adding newline at the end of generated entry
      write newline since kit_string_entry_create doesn't do that any more
      add test harness for polkit-utils
      fix a bug where the childs environment wasn't inherited
      build with -rdynamic for maint mode and use this to print a stack trace
      add (partial) test cases for polkit-authorization-db.c
      relicense everything to the MIT/X11 license
      avoid logging to syslog even for invalid files
      only fail the Nth alloc, not all allocs greater than N
      add test-friendly abstractions for getpwnam and getpwuid
      fix unit tests for polkit-authorization-db.c
      add .gitignore files to get test tree structure in the repo
      update .gitignore files
      add some more test env variables so we can bypass ConsoleKit in the tests
      fix OOM handling in p-a-db.c and only invalidate the cache when necessary
      add some more test cases for p-a-db.c
      add a new KitString class
      implement kit_hash_foreach_remove()
      remove glib dep from libpolkit-dbus
      fix a bug where KitList elements were not properly freed
      downgrade to session scope when granting authorizations for blank passwords
      don't require .policy files for auth lookups
      refactor constraints API so there is one entry per constraint in the auth file
      fix dummy backend so it builds
      update TODO
      update TODO to mention Piter PUNK's patch
      update completion + man page since polkit-auth(1) takes >1 --constraint args
      update NEWS file

---
 COPYING                                                  |  584 ----
 Makefile.am                                              |   42 
 NEWS                                                     |  174 +
 autogen.sh                                               |   26 
 configure.in                                             |  169 +
 data/Makefile.am                                         |    9 
 data/org.freedesktop.PolicyKit.AuthenticationAgent.xml   |   24 
 data/polkit.pc.in                                        |    2 
 doc/Makefile.am                                          |   31 
 doc/TODO                                                 |   91 
 doc/diagram-bus-model.png                                |binary
 doc/diagram-interaction.png                              |binary
 doc/man/Makefile.am                                      |    9 
 doc/man/PolicyKit.conf.xml                               |    8 
 doc/man/PolicyKit.xml                                    |    6 
 doc/man/polkit-action.xml                                |  197 +
 doc/man/polkit-auth.xml                                  |  214 +
 doc/man/polkit-config-file-validate.xml                  |    2 
 doc/man/polkit-grant.xml                                 |  116 
 doc/man/polkit-list-actions.xml                          |   92 
 doc/man/polkit-policy-file-validate.xml                  |    2 
 doc/polkit-diagrams.svg                                  | 1923 +++++++++++++++
 doc/polkit-docs.xml                                      |   95 
 doc/spec/polkit-spec-configuration.xml                   |   56 
 doc/spec/polkit-spec-introduction.xml                    |    4 
 doc/spec/polkit-spec-model.xml                           |  395 ++-
 examples/tracker-example/README                          |    4 
 examples/tracker-example/dk.fubar.PolKitTestService.conf |   10 
 examples/tracker-example/tracker-example-client.py       |   11 
 examples/tracker-example/tracker-example.c               |  138 +
 gtk-doc.make                                             |   25 
 po/LINGUAS                                               |    4 
 po/POTFILES.in                                           |    4 
 policy/Makefile.am                                       |   19 
 policy/org.freedesktop.policykit.policy.in               |   61 
 policy/polkit-example-action.policy                      |   23 
 polkit-dbus/Makefile.am                                  |   31 
 polkit-dbus/polkit-dbus.c                                |  721 -----
 polkit-dbus/polkit-dbus.h                                |   43 
 polkit-grant/Makefile.am                                 |   53 
 polkit-grant/polkit-grant-helper-pam.c                   |  227 -
 polkit-grant/polkit-grant-helper.c                       |  775 ------
 polkit-grant/polkit-grant.c                              |  511 ---
 polkit-grant/polkit-grant.h                              |  366 --
 polkit/.gitignore                                        |    9 
 polkit/Makefile.am                                       |   74 
 polkit/polkit-action.c                                   |  226 -
 polkit/polkit-action.h                                   |   51 
 polkit/polkit-caller.c                                   |  345 --
 polkit/polkit-caller.h                                   |   57 
 polkit/polkit-config.c                                   |  771 ------
 polkit/polkit-config.h                                   |   83 
 polkit/polkit-context.c                                  |  675 -----
 polkit/polkit-context.h                                  |  170 -
 polkit/polkit-debug.c                                    |   81 
 polkit/polkit-debug.h                                    |   33 
 polkit/polkit-error.c                                    |  139 -
 polkit/polkit-error.h                                    |   54 
 polkit/polkit-grant-database.c                           |  496 ---
 polkit/polkit-grant-database.h                           |   81 
 polkit/polkit-policy-cache.c                             |  303 --
 polkit/polkit-policy-cache.h                             |   65 
 polkit/polkit-policy-default.c                           |  283 --
 polkit/polkit-policy-default.h                           |   62 
 polkit/polkit-policy-file-entry.c                        |  325 --
 polkit/polkit-policy-file-entry.h                        |   72 
 polkit/polkit-policy-file.c                              |  587 ----
 polkit/polkit-policy-file.h                              |   62 
 polkit/polkit-result.c                                   |  121 
 polkit/polkit-result.h                                   |   91 
 polkit/polkit-seat.c                                     |  180 -
 polkit/polkit-seat.h                                     |   49 
 polkit/polkit-session.c                                  |  395 ---
 polkit/polkit-session.h                                  |   60 
 polkit/polkit-types.h                                    |   64 
 polkit/polkit-utils.c                                    |  153 -
 polkit/polkit-utils.h                                    |   37 
 polkit/polkit.h                                          |   46 
 polkitd/Makefile.am                                      |   61 
 polkitd/main.c                                           |  199 +
 polkitd/org.freedesktop.PolicyKit.conf.in                |   11 
 polkitd/org.freedesktop.PolicyKit.service.in             |   11 
 polkitd/org.freedesktop.PolicyKit.xml                    |   42 
 polkitd/polkit-daemon.c                                  |  542 ++++
 polkitd/polkit-daemon.h                                  |   87 
 src/Makefile.am                                          |    5 
 src/kit/Makefile.am                                      |   78 
 src/kit/kit-entity.c                                     |  163 +
 src/kit/kit-entity.h                                     |   52 
 src/kit/kit-file.c                                       |  359 ++
 src/kit/kit-file.h                                       |   50 
 src/kit/kit-hash.c                                       |  644 +++++
 src/kit/kit-hash.h                                       |  144 +
 src/kit/kit-list.c                                       |  318 ++
 src/kit/kit-list.h                                       |   85 
 src/kit/kit-memory.c                                     |  333 ++
 src/kit/kit-memory.h                                     |   79 
 src/kit/kit-message.c                                    |  113 
 src/kit/kit-message.h                                    |   48 
 src/kit/kit-spawn.c                                      |  674 +++++
 src/kit/kit-spawn.h                                      |   69 
 src/kit/kit-string.c                                     | 1162 +++++++++
 src/kit/kit-string.h                                     |   90 
 src/kit/kit-test-main.c                                  |   52 
 src/kit/kit-test.c                                       |  133 +
 src/kit/kit-test.h                                       |   72 
 src/kit/kit.h                                            |  153 +
 src/polkit-dbus/Makefile.am                              |  106 
 src/polkit-dbus/polkit-dbus-test.c                       |   63 
 src/polkit-dbus/polkit-dbus-test.h                       |   47 
 src/polkit-dbus/polkit-dbus.c                            | 1558 ++++++++++++
 src/polkit-dbus/polkit-dbus.h                            |   72 
 src/polkit-dbus/polkit-read-auth-helper.c                |  403 +++
 src/polkit-dbus/polkit-set-default-helper.c              |  233 +
 src/polkit-dbus/polkit-simple.c                          |  415 +++
 src/polkit-dbus/polkit-simple.h                          |   48 
 src/polkit-grant/Makefile.am                             |  143 +
 src/polkit-grant/polkit-authorization-db-dummy-write.c   |  111 
 src/polkit-grant/polkit-authorization-db-write.c         |  919 +++++++
 src/polkit-grant/polkit-explicit-grant-helper.c          |  216 +
 src/polkit-grant/polkit-grant-helper-pam.c               |  238 +
 src/polkit-grant/polkit-grant-helper.c                   |  886 ++++++
 src/polkit-grant/polkit-grant-test.c                     |   63 
 src/polkit-grant/polkit-grant-test.h                     |   47 
 src/polkit-grant/polkit-grant.c                          |  560 ++++
 src/polkit-grant/polkit-grant.h                          |  373 ++
 src/polkit-grant/polkit-revoke-helper.c                  |  360 ++
 src/polkit/.gitignore                                    |    9 
 src/polkit/Makefile.am                                   |  151 +
 src/polkit/polkit-action.c                               |  308 ++
 src/polkit/polkit-action.h                               |   59 
 src/polkit/polkit-authorization-constraint.c             |  685 +++++
 src/polkit/polkit-authorization-constraint.h             |   92 
 src/polkit/polkit-authorization-db-dummy.c               |  227 +
 src/polkit/polkit-authorization-db.c                     | 1459 +++++++++++
 src/polkit/polkit-authorization-db.h                     |  175 +
 src/polkit/polkit-authorization.c                        |  879 ++++++
 src/polkit/polkit-authorization.h                        |  140 +
 src/polkit/polkit-caller.c                               |  461 +++
 src/polkit/polkit-caller.h                               |   65 
 src/polkit/polkit-config.c                               |  787 ++++++
 src/polkit/polkit-config.h                               |   91 
 src/polkit/polkit-context.c                              |  822 ++++++
 src/polkit/polkit-context.h                              |  196 +
 src/polkit/polkit-debug.c                                |   85 
 src/polkit/polkit-debug.h                                |   37 
 src/polkit/polkit-error.c                                |  253 +
 src/polkit/polkit-error.h                                |   96 
 src/polkit/polkit-policy-cache.c                         |  519 ++++
 src/polkit/polkit-policy-cache.h                         |   81 
 src/polkit/polkit-policy-default.c                       |  572 ++++
 src/polkit/polkit-policy-default.h                       |   80 
 src/polkit/polkit-policy-file-entry.c                    |  759 +++++
 src/polkit/polkit-policy-file-entry.h                    |   92 
 src/polkit/polkit-policy-file.c                          |  965 +++++++
 src/polkit/polkit-policy-file.h                          |   73 
 src/polkit/polkit-private.h                              |  120 
 src/polkit/polkit-result.c                               |  155 +
 src/polkit/polkit-result.h                               |  114 
 src/polkit/polkit-seat.c                                 |  234 +
 src/polkit/polkit-seat.h                                 |   57 
 src/polkit/polkit-session.c                              |  504 +++
 src/polkit/polkit-session.h                              |   68 
 src/polkit/polkit-sysdeps.c                              |  184 +
 src/polkit/polkit-sysdeps.h                              |   49 
 src/polkit/polkit-test.c                                 |   80 
 src/polkit/polkit-test.h                                 |   64 
 src/polkit/polkit-types.h                                |  109 
 src/polkit/polkit-utils.c                                |  175 +
 src/polkit/polkit-utils.h                                |   45 
 src/polkit/polkit.h                                      |   54 
 test/Makefile.am                                         |   16 
 test/create-coverage-report.sh                           |   64 
 test/invalid/test-invalid-1-action-id.policy             |   14 
 test/invalid/test-invalid-2-bogus-any.policy             |   14 
 test/invalid/test-invalid-3-bogus-inactive.policy        |   14 
 test/invalid/test-invalid-4-bogus-active.policy          |   14 
 test/invalid/test-invalid-5-max-depth.policy             |   87 
 test/valid/test-valid-1.policy                           |   14 
 test/valid/test-valid-2-annotations.policy               |   27 
 test/valid/test-valid-3-lang.policy                      |   28 
 test/valid/test-valid-4-unknown-tags.policy              |   20 
 test/valid/test-valid-5-wrong-extension.policy~          |   14 
 tools/Makefile.am                                        |   26 
 tools/polkit-action.c                                    |  366 ++
 tools/polkit-auth.c                                      |  949 +++++++
 tools/polkit-bash-completion.sh                          |  122 
 tools/polkit-config-file-validate.c                      |   42 
 tools/polkit-grant.c                                     |  512 ---
 tools/polkit-list-actions.c                              |  169 -
 tools/polkit-policy-file-validate.c                      |   42 
 191 files changed, 30295 insertions(+), 10776 deletions(-)
---


More information about the hal-commit mailing list