diff --git a/Userland/mknod.cpp b/Userland/mknod.cpp index 5a325979e3..8ec6e1c9e7 100644 --- a/Userland/mknod.cpp +++ b/Userland/mknod.cpp @@ -42,6 +42,11 @@ static int usage() int main(int argc, char** argv) { + if (pledge("stdio dpath", nullptr) < 0) { + perror("pledge"); + return 1; + } + // FIXME: When invoked with type "p", no need for major/minor numbers. // FIXME: Add some kind of option for specifying the file permissions. if (argc != 5)