cosmopolitan/tool/net
Justine Tunney e81edf7b04 Improve pledge() and unveil()
The pledge.com command now supports the new [WIP] unveil() support. For
example, to strongly sandbox our command for listing directories.

    o//tool/build/assimilate.com o//examples/ls.com
    pledge.com -v /etc -p 'stdio rpath' o//examples/ls.com /etc

This file system sandboxing is going to be perfect for us, because APE
binaries are self-contained static executables that really don't use the
filesystem that much. On the other hand, with non-static executables,
sandboxing is going to be more difficult. For example, here's how to
sandbox the `ls` command on the latest Alpine:

    pledge.com -v rx:/lib -v /usr/lib -v /etc -p 'stdio rpath exec' ls /etc

This change fixes the `execpromises` API with pledge().

This change also adds unix.unveil() to redbean.

Fixes #494
2022-07-18 07:58:20 -07:00
..
demo Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07: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 some systemic improvements 2022-05-18 16:52:36 -07:00
dig.c Restart CI for New Technology and UBSAN hunting 2022-03-21 04:32:57 -07:00
echo.c Reduce makefile dependencies by 10% 2022-06-08 20:01:28 -07:00
favicon.ico Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
help.txt Improve pledge() and unveil() 2022-07-18 07:58:20 -07:00
largon2.c Make improvements 2022-05-28 00:28:09 -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 Improve Lua and JSON serialization 2022-07-12 23:35:11 -07:00
lfuncs.h Add Deflate() / Inflate() to redbean and fix bugs 2022-07-08 09:47:04 -07:00
ljson.c Add utf-8 validation to ljson 2022-07-15 06:20:07 -07:00
ljson.h Further improve JSON serialization 2022-07-11 23:06:49 -07:00
lmaxmind.c Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
lre.c Write more redbean unit tests 2022-07-08 23:10:02 -07:00
lsqlite3.c Add fileio and sqlar SQLite extensions to redbean 2022-06-17 06:04:09 -07:00
luacheck.h Fix reporting of Lua stack items from various hook calls (#395) 2022-04-27 21:57:52 -07:00
net.mk Add tcp syn packet fingerprinting to redbean 2022-07-17 02:43:49 -07:00
redbean.c Add redbean -I flag for launching browser 2022-07-17 06:12:57 -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 Use re-entrant locks on stdio 2022-05-22 08:28:33 -07:00