cosmopolitan/tool
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
..
args Run clang-format on most sources 2023-04-27 05:44:32 -07:00
build Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
curl Run clang-format on most sources 2023-04-27 05:44:32 -07:00
decode Fiddle around with Mach-O 2023-05-20 04:13:49 -07:00
emacs Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
hash Make important improvements 2022-09-14 22:39:08 -07:00
hello Introduce native support for MacOS ARM64 2023-05-20 04:17:03 -07:00
lambda Run clang-format on most sources 2023-04-27 05:44:32 -07:00
net Extend Pledge with anet (same as inet, but with no connect) (#827) 2023-06-03 07:50:29 -07:00
plinko Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
scripts Fix bug in cosmocc / cosmoc++ scripts 2023-05-01 13:46:15 -07:00
viz Fix rgbtoxterm tool to output the proper colors (#819) 2023-05-26 18:30:24 -07:00
tool.mk Get aarch64 hello world working 2023-05-10 04:20:47 -07:00