Compare commits
37 Commits
c0ca99bc7c
...
64e6ee9489
Author | SHA1 | Date | |
---|---|---|---|
64e6ee9489 | |||
d56469441b | |||
d896101268 | |||
ea25d823e5 | |||
b278ae2dbc | |||
41bf27e510 | |||
935aecb96f | |||
3025eadc86 | |||
4bc1530425 | |||
40b0f8c6ec | |||
47c358555d | |||
a411bb6594 | |||
2a06a12721 | |||
cf6fd6ea29 | |||
0c2e9551ca | |||
9fd5d0b874 | |||
f8a5f24352 | |||
dbf014b351 | |||
0a630af250 | |||
dbf9a6bad8 | |||
c3af9091b5 | |||
9fa426eadf | |||
7ddac3c36b | |||
9aad63474b | |||
fdc362d19c | |||
6407ec76e0 | |||
8e36d25e8a | |||
a4b6e988b6 | |||
442a188630 | |||
871d8cce52 | |||
6b32af81f7 | |||
dfe1697ae6 | |||
ad0e8bad4a | |||
987ebe3ef1 | |||
dd9f8afd5b | |||
4b277b38f0 | |||
b4ae8bfaa1 |
@ -339,7 +339,7 @@ Result<int> sysinit()
|
|||||||
stdout = fopen("/dev/console", "w");
|
stdout = fopen("/dev/console", "w");
|
||||||
stderr = fopen("/dev/console", "w");
|
stderr = fopen("/dev/console", "w");
|
||||||
|
|
||||||
TRY(os::Security::pledge("stdio rpath wpath cpath fattr host mount proc exec signal id", nullptr));
|
TRY(os::Security::pledge("stdio rpath wpath cpath fattr host mount proc exec signal", nullptr));
|
||||||
|
|
||||||
mount_tmpfs();
|
mount_tmpfs();
|
||||||
mount_shmfs();
|
mount_shmfs();
|
||||||
@ -356,10 +356,12 @@ Result<int> sysinit()
|
|||||||
if (signal(SIGTERM, sigterm_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGTERM\n");
|
if (signal(SIGTERM, sigterm_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGTERM\n");
|
||||||
if (signal(SIGQUIT, sigquit_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGQUIT\n");
|
if (signal(SIGQUIT, sigquit_handler) == SIG_ERR) do_log("[init] failed to register handler for SIGQUIT\n");
|
||||||
|
|
||||||
TRY(os::Security::pledge("stdio rpath wpath cpath proc exec id", nullptr));
|
TRY(os::Security::pledge("stdio rpath wpath cpath proc exec", nullptr));
|
||||||
|
|
||||||
start_services("/etc/init");
|
start_services("/etc/init");
|
||||||
|
|
||||||
|
TRY(os::Security::pledge("stdio rpath wpath proc exec", nullptr));
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
Loading…
Reference in New Issue
Block a user