cosmopolitan/test/tool/net
Justine Tunney 5546559034 Improve pledge() usability and consistency
- We now kill the program on violations like OpenBSD
- We now print a message explaining which promise is needed
- This change also fixes a linkage bug with thread local storage
- Your sigaction() handlers should now be more thread safe

A new `__pledge_mode` global has been introduced to make pledge() more
customizable on Linux. For example:

    __attribute__((__constructor__)) static void init(void) {
      __pledge_mode = SECCOMP_RET_ERRNO | EPERM;
    }

Can be used to restore our old permissive pledge() behavior.
2022-08-07 16:18:33 -07:00
..
argon2_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
base64_test.lua Fix lsqlite3.lversion() and document local changes 2022-07-24 05:13:28 -07:00
encodejson_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
encodelua_test.lua Have redbean Lua repl show utf-8 when it's valid 2022-07-23 07:22:19 -07:00
jsonorg_fail_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsonorg_pass_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_fail1_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_fail2_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_fail3_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_fail4_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_okay_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
jsontestsuite_pass_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
lfuncs_test.lua Propagate nil in Lua APIs more often 2022-08-05 17:34:13 -07:00
ljson_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
lre_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
lua_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
lunix_test.lua Improve pledge() usability and consistency 2022-08-07 16:18:33 -07:00
md5_test.lua Propagate nil in Lua APIs more often 2022-08-05 17:34:13 -07:00
path_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
redbean_test.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
sha_test.lua Propagate nil in Lua APIs more often 2022-08-05 17:34:13 -07:00
slurp_test.lua Pledge and unveil redbean's unit tests 2022-07-23 07:22:19 -07:00
sqlite_test.c Pacify file locks on Windows 2021-06-12 00:01:55 -07:00
test.mk Rename json test files to avoid build tuning 2022-07-12 13:24:25 -07:00