Diffusion KIO bbf45d2cd550

Add support for sharing file descriptor between file KIO slave and it's KAuth…

Authored by chinmoyr on Dec 27 2017, 5:55 AM.

Description

Add support for sharing file descriptor between file KIO slave and it's KAuth helper

Summary:
When reading or writing a file with elevated privileges the helper will
open the required file (with elevated privileges) and it will share the
open file descriptor with file ioslave. Since the file referred to by the
shared file descriptor was opened by a privileged process, file ioslave
which is a normal user process will be able to modify the file.

This patch adds two classes, FdSender and FdReceiver. And as their
name suggest they facilitate sending and receiving of an open file
descriptor between a privileged and a normal process.

Differential Revision: https://phabricator.kde.org/D6709

Details