mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
SystemServer: Use pledge()
This commit is contained in:
parent
a84aac86b1
commit
1c755d848e
Notes:
sideshowbarker
2024-07-19 10:10:17 +09:00
Author: https://github.com/awesomekling
Commit: 1c755d848e
1 changed files with 5 additions and 0 deletions
|
@ -77,6 +77,11 @@ static void mount_all_filesystems()
|
||||||
|
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio proc exec unix rpath cpath chown fattr id", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
mount_all_filesystems();
|
mount_all_filesystems();
|
||||||
|
|
||||||
struct sigaction sa = {
|
struct sigaction sa = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue