diff --git a/Userland/dmesg.cpp b/Userland/dmesg.cpp index 34218c3ac7..4e7492bd5e 100644 --- a/Userland/dmesg.cpp +++ b/Userland/dmesg.cpp @@ -32,6 +32,18 @@ int main(int argc, char** argv) { + if (pledge("stdio rpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + + if (unveil("/proc/dmesg", "r") < 0) { + perror("unveil"); + return 1; + } + + unveil(nullptr, nullptr); + (void)argc; (void)argv; auto f = CFile::construct("/proc/dmesg");