Store PolicyKit action which the slave is authorized to perform
ClosedPublic

Authored by chinmoyr on Feb 25 2018, 9:41 AM.

Details

Summary

After storing the actions it can be decided whether to kill the slave or not.

Diff Detail

Repository
R241 KIO
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
chinmoyr created this revision.Feb 25 2018, 9:41 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 25 2018, 9:41 AM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
chinmoyr requested review of this revision.Feb 25 2018, 9:41 AM
dfaure requested changes to this revision.Mar 1 2018, 7:07 AM
dfaure added inline comments.
src/core/slavebase.cpp
125

should be m_tempAuth, the letter after '_' is never uppercase.

Maybe m_tempAuths since it's a set?

This revision now requires changes to proceed.Mar 1 2018, 7:07 AM
chinmoyr updated this revision to Diff 28537.Mar 4 2018, 3:58 AM

m_TempAuth -> m_temAuths

dfaure accepted this revision.Mar 4 2018, 10:30 AM

Looks ok, but this commit is a bit too small ;) It would make more sense to integrate this with the code that's calling addTemporaryAuthorization, so we can see how that all works.

This revision is now accepted and ready to land.Mar 4 2018, 10:30 AM
chinmoyr updated this revision to Diff 31227.Apr 3 2018, 6:01 PM

Rebased on D10568
Merged D10437

chinmoyr added inline comments.Apr 3 2018, 6:10 PM
src/core/slavebase.cpp
129

@dfaure where should I place this variable? Just before "m_confirmationAsked"?

chinmoyr updated this revision to Diff 31249.Apr 4 2018, 3:41 AM

Rearranged member vars

This revision was automatically updated to reflect the committed changes.