Skip to content
Snippets Groups Projects
  1. Jun 07, 2023
  2. Oct 27, 2022
  3. Aug 22, 2022
  4. Aug 11, 2022
  5. Jun 22, 2022
  6. Jun 29, 2020
  7. Mar 06, 2019
  8. May 25, 2017
  9. Nov 14, 2016
  10. Aug 12, 2016
  11. Jun 29, 2016
  12. Jun 28, 2016
  13. Jun 24, 2016
    • Philip Withnall's avatar
      libcroesor: Split CsrPeerManager into an interface and 2 implementations · f9a6775b
      Philip Withnall authored
      
      The original implementation of CsrPeerManager always did a
      CbyProcessInfo lookup and a polkit check for authorisation requests it
      received, and was used in both the daemon and the backends. This
      resulted in the backends doing a polkit check for each request they
      received from the daemon, which seems a bit redundant, slows things
      down, and complicates reasoning about the security model and polkit
      rules.
      
      Instead, turn CsrPeerManager into an interface with two implementations:
       • CsrBackendManager, for use by the backends. It tracks a single peer –
         the daemon – and accepts all authorisation requests from it after
         authenticating it using its AppArmor label.
       • VddPeerManager, for use by the daemon. Its implementation is
         identical to the old CsrPeerManager implementation, modulo changes to
         get it to implement the interface. It tracks all peers, and does
         polkit checks for all authorisation requests.
      
      Signed-off-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
      Differential Revision: https://phabricator.apertis.org/D3200
      f9a6775b
  14. May 27, 2016
  15. May 26, 2016
  16. May 19, 2016
  17. May 18, 2016
Loading