1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:08:11 +00:00

SystemMonitor: Unveil /usr/local/lib

This is necessary to symbolicate libraries installed under
/usr/local/lib.
This commit is contained in:
Rodrigo Tobar 2021-09-28 00:02:56 +08:00 committed by Andreas Kling
parent 12e18e44ae
commit ad33efbc8c

View file

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