summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardMapper
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-13 23:20:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-13 23:28:40 +0200
commit31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48 (patch)
treefaae01cc0950a4d1de1eb7932f07b799c558f0fd /Userland/Applications/KeyboardMapper
parent04d78adaf795c803f6867335c63f8339f13459eb (diff)
downloadserenity-31d4bcf5bfe35a892c6ec04cc9e8d4417b990a48.zip
Userland: Tighten a *lot* of pledges! :^)
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
Diffstat (limited to 'Userland/Applications/KeyboardMapper')
-rw-r--r--Userland/Applications/KeyboardMapper/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/KeyboardMapper/main.cpp b/Userland/Applications/KeyboardMapper/main.cpp
index b36964c61a..b87efa5e3b 100644
--- a/Userland/Applications/KeyboardMapper/main.cpp
+++ b/Userland/Applications/KeyboardMapper/main.cpp
@@ -21,14 +21,14 @@ int main(int argc, char** argv)
args_parser.add_positional_argument(path, "Keyboard character mapping file.", "file", Core::ArgsParser::Required::No);
args_parser.parse(argc, argv);
- if (pledge("stdio getkeymap thread rpath accept cpath wpath recvfd sendfd unix fattr", nullptr) < 0) {
+ if (pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd unix", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio getkeymap thread rpath accept cpath wpath recvfd sendfd", nullptr) < 0) {
+ if (pledge("stdio getkeymap thread rpath cpath wpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}
@@ -50,7 +50,7 @@ int main(int argc, char** argv)
keyboard_mapper_widget->load_from_system();
}
- if (pledge("stdio thread rpath accept cpath wpath recvfd sendfd", nullptr) < 0) {
+ if (pledge("stdio thread rpath cpath wpath recvfd sendfd", nullptr) < 0) {
perror("pledge");
return 1;
}