process: add NoNewPrivileges
AbandonedPublic

Authored by topimiettinen on Apr 15 2019, 7:04 PM.

Details

Reviewers
None
Summary

Display Linux process flag NoNewPrivileges.

Diff Detail

Repository
R111 KSysguard Library
Lint
Lint Skipped
Unit
Unit Tests Skipped
topimiettinen created this revision.Apr 15 2019, 7:04 PM
Restricted Application added a project: Plasma. · View Herald TranscriptApr 15 2019, 7:04 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
topimiettinen requested review of this revision.Apr 15 2019, 7:04 PM

Is NoNewPriveleges static for the lifespan of the process?

If not, we need to expand ProcessModelPrivate::processChanged

It's not static, the thread can enable the mode with prctl(PR_SET_NO_NEW_PRIVS). I suppose Process::Status could be used? Maybe I made a mistake, now there is D20645.

topimiettinen abandoned this revision.Apr 24 2019, 5:09 PM

Abandoned in favour of D20645.