1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:07:46 +00:00

Mail: Add unveil

This commit is contained in:
Luke Wilde 2021-08-28 15:02:12 +01:00 committed by Andreas Kling
parent d486560aee
commit 173ba4e19b

View file

@ -25,6 +25,31 @@ int main(int argc, char** argv)
Config::pledge_domains("Mail");
if (unveil("/res", "r") < 0) {
perror("pledge");
return 1;
}
if (unveil("/etc", "r") < 0) {
perror("pledge");
return 1;
}
if (unveil("/tmp/portal/webcontent", "rw") < 0) {
perror("unveil");
return 1;
}
if (unveil("/tmp/portal/lookup", "rw") < 0) {
perror("unveil");
return 1;
}
if (unveil(nullptr, nullptr) < 0) {
perror("unveil");
return 1;
}
auto window = GUI::Window::construct();
auto app_icon = GUI::Icon::default_icon("app-mail");