소스 검색

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

Andreas Kling 5 년 전
부모
커밋
0d961ece94
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Applications/SystemMonitor/main.cpp

+ 2 - 2
Applications/SystemMonitor/main.cpp

@@ -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;
     }