cosmopolitan/test/libc
Paul Kulchenko 5655c9a4e7
Extend Pledge with anet (same as inet, but with no connect) (#827)
* Add `anet` pledge for `inet` without connect

This is useful for configurations where it's desirable to start redbean
under these restrictions, but not to allow `connect` socket calls.

* Update message on protected/unpledged syscalls for clarity

* Update redbean to add reporting for unpledged sigaction

Previously it would abort without indicating what signal it failed to
install when sigaction is not pledged (although it fails all of them).

* Move GetHostIps before processing command line options

This allows using unix.pledge as part of the options without affecting
retrieving host IP addresses (which requires `connect`). It may still
fail under external `pledge` command as expected; in this case IPs
would need to be passed manually.

* Update tests for pledge anet promise
2023-06-03 07:50:29 -07:00
..
calls Extend Pledge with anet (same as inet, but with no connect) (#827) 2023-06-03 07:50:29 -07:00
dns Rename rand64() to _rand64() 2022-10-10 04:12:06 -07:00
fmt Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
intrin Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
log Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
mem Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
nexgen32e Make AARCH64 harder, better, faster, stronger 2023-05-15 02:15:34 -07:00
release Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
runtime Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
sock Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
stdio Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
str Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
thread Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
time Make fixes and improvements 2022-10-19 07:19:19 -07:00
tinymath Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
x Greatly expand system() shell code features 2022-10-11 21:30:31 -07:00
xed Pay off more technical debt 2022-09-12 23:36:56 -07:00
zipos Add fexecve() and map O_EXEC to O_PATH on Linux 2022-10-02 09:15:46 -07:00
test.mk Don't relocate file descriptor memory 2022-09-09 16:54:28 -07:00