Browse Source

SystemMonitor: Unveil /usr/local/lib

This is necessary to symbolicate libraries installed under
/usr/local/lib.
Rodrigo Tobar 3 years ago
parent
commit
ad33efbc8c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Userland/Applications/SystemMonitor/main.cpp

+ 5 - 0
Userland/Applications/SystemMonitor/main.cpp

@@ -141,6 +141,11 @@ int main(int argc, char** argv)
         return 1;
         return 1;
     }
     }
 
 
+    if (unveil("/usr/local/lib", "r") < 0 && errno != ENOENT) {
+        perror("unveil");
+        return 1;
+    }
+
     if (unveil("/bin/Profiler", "rx") < 0) {
     if (unveil("/bin/Profiler", "rx") < 0) {
         perror("unveil");
         perror("unveil");
         return 1;
         return 1;