Skip to content

Commit

Permalink
SystemMonitor: Unveil /usr/local/lib
Browse files Browse the repository at this point in the history
This is necessary to symbolicate libraries installed under
/usr/local/lib.
  • Loading branch information
rtobar authored and awesomekling committed Sep 28, 2021
1 parent 12e18e4 commit ad33efb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Userland/Applications/SystemMonitor/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ int main(int argc, char** argv)
return 1;
}

if (unveil("/usr/local/lib", "r") < 0 && errno != ENOENT) {
perror("unveil");
return 1;
}

if (unveil("/bin/Profiler", "rx") < 0) {
perror("unveil");
return 1;
Expand Down

0 comments on commit ad33efb

Please sign in to comment.