mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
This change fixes Landlock Make so that only the output target file is unveiled, rather than unveiling the directory that contains it. This gives us a much stronger sandbox. It also helped identify problematic build code in our repo that should have been using o/tmp instead. Landlock isn't able to let us unveil files that don't exist. Even if they do, then once a file is deleted, the sandboxing for it goes away. This caused problems for Landlock Make because tools like GNU LD will repeatedly delete and recreate the output file. This change uses the compile.com wrapper to ensure on changes happen to the output inode. New binary available on https://justine.lol/make/ Fixes #528 |
||
---|---|---|
.. | ||
unix | ||
api.c | ||
apihelp.c | ||
consts.h | ||
crc32.c | ||
crc32.h | ||
crypt.c | ||
crypt.h | ||
ebcdic.h | ||
envargs.c | ||
explode.c | ||
extract.c | ||
fileio.c | ||
globals.c | ||
globals.h | ||
inflate.c | ||
inflate.h | ||
LICENSE | ||
list.c | ||
match.c | ||
process.c | ||
README.cosmo | ||
timezone.c | ||
timezone.h | ||
ttyio.c | ||
ttyio.h | ||
ubz2err.c | ||
unix.c | ||
unreduce.c | ||
unshrink.c | ||
unxcfg.h | ||
unzip.c | ||
unzip.h | ||
unzip.mk | ||
unzip.txt | ||
unzpriv.h | ||
unzvers.h | ||
zip.h | ||
zipinfo.c | ||
zipinfo.txt |
DESCRIPTION The UNIX unzip command, courtesy of the Info-ZIP project. PROVENANCE unzip610b.zip (circa 2010) https://sourceforge.net/projects/infozip/files/unreleased%20Betas/UnZip%20betas/ LICENSE BSD-like with Apache-like requirement that changes be documented. LOCAL CHANGES The only way this software differs from the normal InfoZIP sources is that we're linking the Cosmopolitan C Library, which enables it to be built as an Actually Portable Executable. Minor changes include: - Normalization of header / build config for platform / repository sed -i -e '/# *include *<.*/d' *.* sed -i -e 's!# *include *"!#include "third_party/unzip/!' *.* sed -i -e '1 i\// clang-format off' *.c *.h - Fixed a lot of static analysis buffer overflow warnings.