cosmopolitan/tool/net
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
..
demo FIx link in gensvg demo (#723) 2023-01-28 09:12:13 -08:00
tiny Fix bugs with recent change 2022-04-16 10:40:23 -07:00
.init.lua Add SSL to redbean 2021-06-24 13:20:50 -07:00
counters.inc Make fixes and improvements 2022-10-19 07:19:19 -07:00
definitions.lua doc: remove "everything everything" from ParseUrl doc (#704) 2023-02-23 09:34:48 -08:00
dig.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
echo.c Make improvements 2022-11-07 02:26:06 -08:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
fetch.inc Extend redbean Fetch to add option to keeping connection open (#818) 2023-05-17 20:49:26 -07:00
help.txt Extend Pledge with anet (same as inet, but with no connect) (#827) 2023-06-03 07:50:29 -07:00
largon2.c WIP: Correct all typos (#498) 2022-07-20 14:01:15 -07:00
lfinger.c Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfinger.h Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
lfuncs.c Make considerably more progress on AARCH64 2023-05-12 22:42:57 -07:00
lfuncs.h Do some work on redbean 2022-07-22 20:44:24 -07:00
ljson.c Run clang-format on most sources 2023-04-27 05:44:32 -07:00
ljson.h Further improve JSON serialization 2022-07-11 23:06:49 -07:00
lmaxmind.c Fix important bugs in redbean 2022-09-17 02:18:06 -07:00
lpath.c Make improvements 2022-07-21 03:36:42 -07:00
lpath.h Make improvements 2022-07-21 03:36:42 -07:00
lre.c Fix re.NOSUB memory error (#645) 2022-10-02 12:49:23 -07:00
lsqlite3.c Fix redbean SQLite to report results on failure to open db (#760) 2023-03-05 14:26:56 -08:00
luacheck.h Run clang-format on most sources 2023-04-27 05:44:32 -07:00
net.mk Port a lot more code to AARCH64 2023-05-14 09:37:26 -07:00
redbean-original.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-static.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean-unsecure.c Remove plenty of makefile misconfigurations 2022-07-21 09:20:59 -07:00
redbean.c Extend Pledge with anet (same as inet, but with no connect) (#827) 2023-06-03 07:50:29 -07:00
redbean.png Make improvements 2020-09-14 00:02:34 -07:00
sandbox.h Strengthen the pledge() polyfill 2022-06-27 13:02:17 -07:00
wb.c Improve redbean method=get parameter handling 2022-09-19 20:04:39 -07:00