1. 11 Jun, 2021 1 commit
    • Simon McVittie's avatar
      build: Make the directory for helper executables consistent with Autotools · 599ed069
      Simon McVittie authored and Simon McVittie's avatar Simon McVittie committed
      The Autotools build system has been using /usr/lib/polkit-1 for several
      releases, even on distributions where the library directory is /usr/lib64
      or /usr/lib/x86_64-linux-gnu, so it makes sense for Meson to do the same.
      This lets 32- and 64-bit polkit agents share a single helper executable.
      This might be superseded by polkit!63, which requests going back to using
      the libexecdir for these (like polkit 0.105 did), which would also make
      sense; but until that's decided, let's at least be consistent between
      our two build systems.
      Every time we change this, all programs that have already loaded
      libpolkit-agent into their address space need to be restarted, unless
      distributions provide compatibility symlinks.
      Signed-off-by: default avatarSimon McVittie <smcv@debian.org>
  2. 13 Apr, 2021 1 commit
  3. 25 Feb, 2021 1 commit
  4. 26 Oct, 2020 1 commit
    • Jan Rybar's avatar
      build: Port to meson build system · 957a0151
      Jan Rybar authored
      meson is a build system focused on speed an ease of use, which
      helps speeding up the software development. This patch adds meson
      support along autotools.
  5. 25 Aug, 2020 1 commit
  6. 16 Jun, 2020 1 commit
  7. 21 Feb, 2020 1 commit
  8. 08 Oct, 2019 1 commit
  9. 02 Apr, 2019 1 commit
    • Jan Rybar's avatar
      Use JS_EncodeStringToUTF8 consistently with JavaScript · 2bc4e656
      Jan Rybar authored
      When strings handled by the jsbackendauthority contain non-ASCII, the
      code will fail.  For example, on a system having a user with a
      non-ASCII name, the following message will appear when a USB stick is
      plugged in.
      mar 04 21:47:31 mimmi polkitd[17163]: Error evaluating authorization rules
      The user will not be allowed to do the mount.
      The problem is that strings were variously encoded back to C strings
      with JS_EncodeString and JS_EncodeStringToUTF8.  According to the
      the former will simply drop the high byte from each character.  If
      that happens to a username, it will no longer be found as a valid user
      name on the system.  Explicitly encoding to UTF-8 will at least work
      in UTF-8 locales, which is the increasingly dominant encoding.
  10. 26 Mar, 2019 1 commit
  11. 12 Mar, 2019 1 commit
    • Emmanuele Bassi's avatar
      Port the JS authority to mozjs-60 · dd00683e
      Emmanuele Bassi authored and Ray Strode's avatar Ray Strode committed
      API changes in mozjs that need to be reflected in the JS authority:
       - the JS::CompileOptions constructor and the JS::CompartmentOptions
         do not allow setting a JS version any more
       - do not use NULL comparisons for C++ objects
       - the resize() method for a vector has a return value that needs
         to be handled
       - JSClassOps has different fields
  12. 08 Jan, 2019 1 commit
  13. 29 Nov, 2018 1 commit
  14. 15 Aug, 2018 1 commit
    • Jan Rybar's avatar
      Leaking zombie child processes · 8638ec5c
      Jan Rybar authored
      Resolves: bz#106021
      Subject: [PATCH] polkitd: fix zombie not reaped when js spawned process timed
      The child watch source attached to thread context didn't work due
      to the release of it's main loop and context outside. So we attach
      the source to the global default main context to make it work and
      avoid zombies.
  15. 03 Jul, 2018 1 commit
    • Miloslav Trmač's avatar
      Fix CVE-2018-1116: Trusting client-supplied UID · bc7ffad5
      Miloslav Trmač authored
      As part of CVE-2013-4288, the D-Bus clients were allowed (and
      encouraged) to submit the UID of the subject of authorization checks
      to avoid races against UID changes (notably using executables
      set-UID to root).
      However, that also allowed any client to submit an arbitrary UID, and
      that could be used to bypass "can only ask about / affect the same UID"
      checks in CheckAuthorization / RegisterAuthenticationAgent /
      UnregisterAuthenticationAgent.  This allowed an attacker:
      - With CheckAuthorization, to cause the registered authentication
        agent in victim's session to pop up a dialog, or to determine whether
        the victim currently has a temporary authorization to perform an
        (In principle, the attacker can also determine whether JavaScript
        rules allow the victim process to perform an operation; however,
        usually rules base their decisions on information determined from
        the supplied UID, so the attacker usually won't learn anything new.)
      - Wi...
  16. 03 Apr, 2018 25 commits