PolicyKit: Changes to 'wip/halfline/new-release'

Ray Strode halfline at kemper.freedesktop.org
Mon Apr 2 15:44:33 UTC 2018


New branch 'wip/halfline/new-release' available with the following commits:
commit fffd12e64c126a0caaeb7e448fee69f4d1d9699e
Author: Stef Walter <stefw at redhat.com>
Date:   Fri May 2 16:38:25 2014 +0200

    polkitagent: No double warnings in polkit_agent_listener_register()
    
    The caller of polkit_agent_listener_register() or similar is
    responsible for handling returned errors (and/or print them).
    
    Remove undconditional warning.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=78193

commit 9469dc83e970088551ffe028d8cfc47864aaa745
Author: Jiří Klimeš <jklimes at redhat.com>
Date:   Wed Oct 29 12:14:14 2014 +0100

    trivial: fix deprecated indication for polkit_agent_register_listener()
    
    polkit_agent_register_listener() is deprecated for a new function named
    polkit_agent_listener_register(), not polkit_authority_listener_register().
    
    Signed-off-by: Jiří Klimeš <jklimes at redhat.com>

commit affdf3a749f518bc3c0d55cbf9c3a314c8a46560
Author: Colin Walters <walters at verbum.org>
Date:   Wed Jun 3 16:31:12 2015 -0400

    tests: Correct boundary test for overflow
    
    The offset has to be strictly less than the max.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=87716

commit d5c7e0e7d154d03dff2c15954c4ccb8d8cb8cb06
Author: Colin Walters <walters at verbum.org>
Date:   Thu Jun 4 13:00:42 2015 -0400

    build: Use AC_USE_SYSTEM_EXTENSIONS
    
    This ensures that we get all of the extensions consistently, rather
    than having just a few files `#define _GNU_SOURCE`.

commit a2f1f2e07102bc67737a907ef235f593df196982
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Thu Jun 18 22:08:06 2015 +0200

    Move to current GLib
    
    Set up glib to use the installed version for deprecation warnings
    instead of limiting ourselves to [2.30,2.34]; this will let us use
    newer API, and help us keep up to date with future deprecations.
    
    Then fix all the warnings (as of GLib 2.44.1).
    
    https://bugs.freedesktop.org/show_bug.cgi?id=91198

commit bd3d757744ecbe140c7c15ba04d7d7daae321d04
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Mon Apr 2 11:11:32 2018 -0400

    Fix a race condition when terminating runaway_killer_thread
    
    The code used to call g_main_loop_quit() from the main thread, without
    having any guarantee that runaway_killer_thread_func() has even entered
    its g_main_loop_run().  If a main loop is not running,
    g_main_loop_quit() has no effect.
    
    This could occasionally be reproduced in
    test-polkitbackendjsauthority.c, which is creating several very
    short-lived PolkitBackendJSAuthority instances.  Real polkitd should not
    generally be affected, because it is using a single instance running for
    the life of the process ~ for the uptime of the system, enough time to
    enter the runaway_killer_thread main loop.
    
    To fix this, use g_idle_source_new () to make sure g_main_loop_quit ()
    is called from within the running main loop.
    
    Also, simplify the initialization of runaway_killer_thread by moving the
    creation of rkt_context and rkt_loop into the main thread; this makes
    the condition variable and its associated mutex completely unnecessary.
    
    Finally, only destroy rkt_timeout_pending_mutex _after_ the thread
    terminates; before, we were certain that rkt_source was destroyed by
    that time, but AFAICS that does not ensure that the rkt_on_timeout ()
    callback has already terminated.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=95513
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit 7ed527d7589c342a28ce70ede17c6c7bc6356b2d
Author: Sebastien Bacher <seb128 at ubuntu.com>
Date:   Mon Apr 2 10:52:47 2018 -0400

    Support polkit session agent running outside user session
    
    commit a68f5dfd7662767b7b9822090b70bc5bd145c50c made
    session applications that are running from a user bus
    work with polkitd, by falling back to using the currently
    active session.
    
    This commit is similar, but for the polkit agent.  It allows,
    a polkit agent to be run from a systemd --user service
    that's not running directly in the users session.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=96977

commit a583247ff4d108db4fdbd5cdefe897ebfdc9580a
Author: Philip Withnall <philip.withnall at collabora.co.uk>
Date:   Wed Aug 3 23:43:45 2016 +0100

    polkitbackend: Fix typos in a couple of initialisation error messages
    
    https://bugs.freedesktop.org/show_bug.cgi?id=97342

commit 3faba56981390b36c6ae9a0c769fa940a1088d3a
Author: Sven Eden <sven.eden at gmx.de>
Date:   Mon Apr 2 10:04:56 2018 -0400

    configure: enable elogind support in PolicyKit
    
    Currently configure.ac allows the usage of either libsystemd-login or
    ConsoleKit for session tracking.
    
    The elogind project (https://github.com/wingo/elogind) provides
    systemd-logind as a stand-alone daemon.  To allow users of systems not
    run by the full systemd suite, for whatever reason there might be, to at
    least be able to not have to use ConsoleKit for session tracking, an
    integration of elogind usage into PolicyKit would be very helpfull.
    
    As elogind provides the same interface as systemd-logind, integration is
    easy.
    
    This commit changes configure.ac to look for elogind in the same way
    it looks for systemd-logind.

commit 91456944551abdda5452e6e7fa23866af03d63a0
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Thu Oct 22 16:30:45 2015 +0200

    Fix help for (pkttyagent -s)
    
    https://bugs.freedesktop.org/show_bug.cgi?id=92581

commit 9bce67a7512865408875ff28ea4dd4df4c2fb2bc
Merge: 29ba7af e832a0f
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Mon Apr 2 09:59:40 2018 -0400

    Audit and fix GVariant reference counting
    
    This patch series fixes a fair number of memory leaks revolving around
    GVariant memory allocation and D-Bus calls.
    
    The first patch in the series does not actually fix any leaks, only
    simplifies the code; the rest are leak fixes, one or two per patch.

commit e832a0f39594f1920fd9b2640dc734a5b04d06d8
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Thu Feb 9 19:58:12 2017 +0100

    Fix a memory leak on agent authentication cancellation
    
    (This is cancellation by the daemon, possibly requested by the client, not by the agent.)
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit 78602af89d3640f4e6d73bc149780cf5638db1c2
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Thu Feb 9 19:53:54 2017 +0100

    Fix a memory leak per agent authentication
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit a7b3c9294c7e528e68d1a9f8943a5f8fefe06d5b
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Thu Feb 9 19:38:17 2017 +0100

    Fix error handling in polkit_authority_enumerate_temporary_authorizations_finish
    
    Fix memory leaks, and don't return a pointer to freed memory.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit 826eb57e6b7ec8e3d742429252512162f1d74e07
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 23:03:06 2017 +0100

    Fix memory leaks in server_handle_*_temporary_authorizations
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit 88a3ae869a2ddebbe15ed810d2e786cdc67b8550
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 22:57:21 2017 +0100

    Fix a memory leak in server_handle_authentication_agent_response{,2}
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit e0d885042cbb2b83a5625c2a0cac3710c4f34b8f
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 22:55:10 2017 +0100

    Fix a memory leak in server_handle_unregister_authentication_agent
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit 2b11f683cdc0aa0ab5e57e979043e4b0adf34ab6
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 22:53:58 2017 +0100

    Fix a memory leak in server_handle_register_authentication_agent_with_options
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit de834183940abfe91ec0d1e2e5c10bd01140db55
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 22:27:11 2017 +0100

    Fix a memory leak on an error path of lookup_asv (twice)
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>

commit e79673b5e7884aca243c0961150c71757be6a0a4
Author: Miloslav Trmač <mitr at redhat.com>
Date:   Wed Feb 8 22:26:37 2017 +0100

    Simplify GVariant reference counting
    
    For (non-public-API) *_to_gvariant, explicitly document that they return
    a floating value, and rely on it in callers to avoid a
    variable/sink/unref combo.
    
    This should not change behavior.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=99741
    
    Signed-off-by: Miloslav Trmač <mitr at redhat.com>



More information about the hal-commit mailing list