From a6fc80f069f4c59bbaaa3b48985847af66eec2aa Mon Sep 17 00:00:00 2001 From: Ralf Donau Date: Thu, 26 Aug 2021 20:51:53 +0200 Subject: [PATCH] Games: Remove unveiling /tmp/portal/config Config::pledge_domains is applied before, hence /tmp/portal/config can and should be veiled. --- Userland/Games/2048/main.cpp | 5 ----- Userland/Games/Chess/main.cpp | 5 ----- Userland/Games/Solitaire/main.cpp | 5 ----- 3 files changed, 15 deletions(-) diff --git a/Userland/Games/2048/main.cpp b/Userland/Games/2048/main.cpp index a8a4c0a604..e3fa8d02cd 100644 --- a/Userland/Games/2048/main.cpp +++ b/Userland/Games/2048/main.cpp @@ -49,11 +49,6 @@ int main(int argc, char** argv) return 1; } - if (unveil("/tmp/portal/config", "rw") < 0) { - perror("unveil"); - return 1; - } - if (unveil(nullptr, nullptr) < 0) { perror("unveil"); return 1; diff --git a/Userland/Games/Chess/main.cpp b/Userland/Games/Chess/main.cpp index f634913b1b..714983baf8 100644 --- a/Userland/Games/Chess/main.cpp +++ b/Userland/Games/Chess/main.cpp @@ -38,11 +38,6 @@ int main(int argc, char** argv) return 1; } - if (unveil("/tmp/portal/config", "rw") < 0) { - perror("unveil"); - return 1; - } - if (unveil("/bin/ChessEngine", "x") < 0) { perror("unveil"); return 1; diff --git a/Userland/Games/Solitaire/main.cpp b/Userland/Games/Solitaire/main.cpp index af24991567..6a5da2ca7a 100644 --- a/Userland/Games/Solitaire/main.cpp +++ b/Userland/Games/Solitaire/main.cpp @@ -38,11 +38,6 @@ int main(int argc, char** argv) return 1; } - if (unveil("/tmp/portal/config", "rw") < 0) { - perror("unveil"); - return 1; - } - if (unveil(nullptr, nullptr) < 0) { perror("unveil"); return 1;