diff --git a/Userland/ps.cpp b/Userland/ps.cpp index 5ffb8ff20f..068e394ebd 100644 --- a/Userland/ps.cpp +++ b/Userland/ps.cpp @@ -32,6 +32,23 @@ int main(int argc, char** argv) { + if (pledge("stdio rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + + if (unveil("/proc/all", "r") < 0) { + perror("unveil"); + return 1; + } + + if (unveil("/etc/passwd", "r") < 0) { + perror("unveil"); + return 1; + } + + unveil(nullptr, nullptr); + (void)argc; (void)argv;