<table><tr><td style="">chinmoyr updated this revision to Diff 17013.<br />chinmoyr retitled this revision from "Add basic KAuth support to file ioslave" to "Add kauth helper to file ioslave".<br />chinmoyr edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-7jn5vo7cgvrrvy6/" rel="noreferrer">(Show Details)</a><br />chinmoyr removed subscribers: davidedmundson, dfaure, eliasp, aacid.<br />chinmoyr added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6197" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Removed everything except the helper's code<br />
Replaced all the helper method with on method, <tt style="background: #ebebeb; font-size: 13px;">exec()</tt>.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">This patch adds <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the relevant KAuth code to file ioslave that can be used to perform various file management operations with escalated privilege.<br />
//execWithRoot()// : This method performs the specified operation as root<br />
//warningMessage()//: Decides upon the warning message. As of yet it only has warning for the delete operation.<br />
//showWarning()//: Shows the warning.<br />
<br />
meta-data "UnitTesting" will be used in unit test for this cod</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">a kauth helper to be used by file ioslav</span>e.</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D6197?vs=16738&id=17013" rel="noreferrer">https://phabricator.kde.org/D6197?vs=16738&id=17013</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6197" rel="noreferrer">https://phabricator.kde.org/D6197</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/file/CMakeLists.txt<br />
src/ioslaves/file/kauth/CMakeLists.txt<br />
src/ioslaves/file/kauth/file.actions<br />
src/ioslaves/file/kauth/filehelper.cpp<br />
src/ioslaves/file/kauth/filehelper.h</div></div></div><br /><div><strong>To: </strong>chinmoyr, elvisangelaccio, Frameworks, dfaure<br /></div>