SystemMonitor: Add "proc" pledge so we can send signals to processes

This commit is contained in:
Andreas Kling 2020-01-12 10:07:42 +01:00
commit 0d961ece94
Notes: sideshowbarker 2024-07-19 10:08:55 +09:00

View file

@ -49,14 +49,14 @@ static NonnullRefPtr<GWidget> build_graphs_tab();
int main(int argc, char** argv)
{
if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) {
if (pledge("stdio proc shared_buffer rpath unix cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv);
if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) {
if (pledge("stdio proc shared_buffer rpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}