cosmopolitan/test
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
..
dsp Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
libc Extend Pledge with anet (same as inet, but with no connect) (#827) 2023-06-03 07:50:29 -07:00
net Make AARCH64 harder, better, faster, stronger 2023-05-15 02:15:34 -07:00
tool Perform some code cleanup 2023-05-15 16:32:10 -07:00
test.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00