Diffusion KIO 11a14afc831e

Auth Support: Drop privileges if target is not owned by root

Authored by chinmoyr on Jun 21 2019, 3:39 PM.

Description

Auth Support: Drop privileges if target is not owned by root

Summary:
chown is performed with elevated privileges. For chmod and utime, the uid
and gid of the target file is considered when relinquishing privileges. For
the remaining actions, the uid and gid of target's parent directory is considered.

Reviewers: dfaure, ngraham, elvisangelaccio, Frameworks, Dolphin, maltek

Reviewed By: maltek

Subscribers: maltek, mreeves, mgerstner, fvogt, kde-frameworks-devel

Tags: Frameworks

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