cosmopolitan/test/libc/runtime
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
..
ape_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
arch_prctl_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
clone_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
fork_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
getdosargv_test.c Make improvements 2022-04-28 09:57:07 -07:00
getdosenviron_test.c Add MODE=optlinux build mode (#141) 2021-10-14 19:36:49 -07:00
grow_test.c Make numerous improvements 2021-09-28 01:52:34 -07:00
itsatrap_test.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
memtrack_test.c Perform code cleanup on test pledges 2022-07-24 22:34:13 -07:00
mmap_test.c Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
mprotect_test.c Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
munmap_test.c Always initialize thread local storage 2022-07-19 00:21:46 -07:00
test.mk Make _Thread_local work across platforms 2022-07-10 04:01:17 -07:00
tls_test.c Improve pledge() usability and consistency 2022-08-07 16:18:33 -07:00