D6198: Add KAuth support to delete operation

2018-02-09 Thread Chinmoy Ranjan Pradhan
chinmoyr abandoned this revision. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D6198 To: chinmoyr, elvisangelaccio, #frameworks Cc: fvogt, dfaure, davidedmundson, michaelh, ngraham

D6198: Add KAuth support to delete operation

2017-07-01 Thread David Faure
dfaure added a comment. OK now I see the purpose of the Helper class. Strange that it appeared in the previous commit, but OK. INLINE COMMENTS > deletejobtest.cpp:119 > +QVERIFY(spy.isValid()); > +QVERIFY(spy.wait(10)); > +QCOMPARE(job->error(), KJOB_NO_ERROR); 100s is too m

D6198: Add KAuth support to delete operation

2017-06-25 Thread Chinmoy Ranjan Pradhan
chinmoyr added a dependent revision: D6383: Add KAuth support to KIO's symlink operation. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D6198 To: chinmoyr, elvisangelaccio, #frameworks Cc: davidedmundson

D6198: Add KAuth support to delete operation

2017-06-23 Thread Chinmoy Ranjan Pradhan
chinmoyr added a comment. > If there was a malicous agent hiding in a dolphin plugin, it would just be making a direct call to the helper and skip all that. Till now I was not aware of what a dolphin plugin can or cannot do. I assumed there would be some kind of restriction. I was wrong

D6198: Add KAuth support to delete operation

2017-06-22 Thread David Edmundson
davidedmundson added a comment. > There are additional prompts as well. Those prompts are in the client code. If there was a malicous agent hiding in a dolphin plugin, it would just be making a direct call to the helper and skip all that. REPOSITORY R241 KIO REVISION DETAIL https:

D6198: Add KAuth support to delete operation

2017-06-22 Thread Chinmoy Ranjan Pradhan
chinmoyr added inline comments. INLINE COMMENTS > davidedmundson wrote in file.actions:5 > We don't want session persistence > > It would mean if you prompt the user to delete a file, any rogue plugin in > Dolphin can now remove any file without prompts. > It would mean if you prompt the user

D6198: Add KAuth support to delete operation

2017-06-22 Thread Chinmoy Ranjan Pradhan
chinmoyr updated this revision to Diff 15732. chinmoyr added a comment. minor fixes REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D6198?vs=15625&id=15732 REVISION DETAIL https://phabricator.kde.org/D6198 AFFECTED FILES autotests/deletejobtest.cpp autote

D6198: Add KAuth support to delete operation

2017-06-20 Thread Chinmoy Ranjan Pradhan
chinmoyr updated this revision to Diff 15625. chinmoyr marked 2 inline comments as done. chinmoyr added a comment. Added unit tests and addressed minor issues. REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D6198?vs=15517&id=15625 REVISION DETAIL https://phab

D6198: Add KAuth support to delete operation

2017-06-18 Thread Elvis Angelaccio
elvisangelaccio added inline comments. INLINE COMMENTS > davidedmundson wrote in file.actions:5 > We don't want session persistence > > It would mean if you prompt the user to delete a file, any rogue plugin in > Dolphin can now remove any file without prompts. > We don't want session persiste

D6198: Add KAuth support to delete operation

2017-06-18 Thread David Edmundson
davidedmundson added inline comments. INLINE COMMENTS > file.actions:5 > +Policy=auth_admin > +Persistence=session We don't want session persistence It would mean if you prompt the user to delete a file, any rogue plugin in Dolphin can now remove any file without prompts. > helper.cpp:46 > +

D6198: Add KAuth support to delete operation

2017-06-17 Thread Chinmoy Ranjan Pradhan
chinmoyr updated this revision to Diff 15517. REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D6198?vs=15516&id=15517 REVISION DETAIL https://phabricator.kde.org/D6198 AFFECTED FILES src/ioslaves/file/file.cpp src/ioslaves/file/file_unix.cpp src/ioslaves/fi

D6198: Add KAuth support to delete operation

2017-06-17 Thread Chinmoy Ranjan Pradhan
chinmoyr updated this revision to Diff 15516. REPOSITORY R241 KIO CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D6198?vs=15388&id=15516 REVISION DETAIL https://phabricator.kde.org/D6198 AFFECTED FILES src/ioslaves/file/file.cpp src/ioslaves/file/file_unix.cpp src/ioslaves/fi

D6198: Add KAuth support to delete operation

2017-06-17 Thread Elvis Angelaccio
elvisangelaccio requested changes to this revision. elvisangelaccio added inline comments. This revision now requires changes to proceed. INLINE COMMENTS > file.actions:3 > +Name=Remove items as a privileged user. > +Description=Remove items as a privileged user. > +Policy=auth_admin Let's impro

D6198: Add KAuth support to delete operation

2017-06-12 Thread Chinmoy Ranjan Pradhan
chinmoyr edited the test plan for this revision. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D6198 To: chinmoyr, elvisangelaccio, #frameworks

D6198: Add KAuth support to delete operation

2017-06-12 Thread Chinmoy Ranjan Pradhan
chinmoyr created this revision. Restricted Application added a project: Frameworks. REVISION SUMMARY This patch makes it possible to delete root owned files and folders. To avoid any accidental deletion a warning is shown informing the user about the write-protection. The warnings can either