mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
Userland: Add unveil/pledge requisites for dynamic Unicode data loading
Loading libunicodedata.so will require dlopen(), which in turn requires mmap(). The 'prot_exec' pledge is needed for this. Further, the .so itself must be unveiled for reading. The "real" path is unveiled (libunicodedata.so.serenity) as the symlink (libunicodedata.so) itself cannot be unveiled.
This commit is contained in:
parent
35e5cbe3b3
commit
10a8b6d411
7 changed files with 16 additions and 8 deletions
|
@ -1207,7 +1207,7 @@ public:
|
|||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
TRY(Core::System::pledge("stdio rpath wpath cpath tty sigaction"));
|
||||
TRY(Core::System::pledge("stdio rpath wpath cpath tty sigaction prot_exec"));
|
||||
#endif
|
||||
|
||||
bool gc_on_every_allocation = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue