D6709: [RFC] Add support for sharing file descriptor between KIO slave and KAuth helper

David Edmundson noreply at phabricator.kde.org
Sat Jul 15 12:20:24 UTC 2017


davidedmundson added a comment.


  > The sequence would be, registering service in ioslave, setting euid of the helper process and sending the file descriptor over user's session bus
  
  I don't fully know this code, but that doesn't sound right.
  
  Your helper is running on the system bus, and shouldn't really have access to the user's session bus at all.
  Your client side ioslave will have connections to both busses, but only be talking to the helper on the system bus.
  
  With polkit you currently request something over DBus from a helper and you get a reply back. What you're describing you want is exactly that, except the reply happens a file descriptor. (which as you hint is a native DBus type) Why do you need to register a service in the ioslave?

INLINE COMMENTS

> sharefd.cpp:107
> +
> +bool FdReceiver::startListening(const std::string &path)
> +{

If this is on the client side, what stops any other (non authorised) client listening to here?

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D6709

To: chinmoyr, thiago, #frameworks
Cc: davidedmundson, elvisangelaccio, shortstheory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170715/01dad1fe/attachment.html>


More information about the Kde-frameworks-devel mailing list