cosmopolitan/tool
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
..
args Make some systemic improvements 2022-05-18 16:52:36 -07:00
build Make some last minute improvements to make.com 2022-08-07 05:59:53 -07:00
decode Remove malloc() dependency on pledge() / unveil() 2022-07-24 21:51:37 -07:00
emacs Make more libc improvements 2022-08-06 17:18:40 -07:00
hash Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
lambda Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
net Improve pledge() usability and consistency 2022-08-07 16:18:33 -07:00
plinko Remove trailing whitespace from all files (#497) 2022-07-20 20:31:16 -07:00
scripts Make more libc improvements 2022-08-06 17:18:40 -07:00
viz Prove that Makefile is fully defined 2022-08-06 04:05:08 -07:00
tool.mk Make fixes and improvements 2022-06-18 01:46:12 -07:00