mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Mail: Add unveil
This commit is contained in:
parent
d486560aee
commit
173ba4e19b
1 changed files with 25 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue