HardenedBSD/usr.bin/mkuzip
Robert Wing 525a177c16 mkuzip: drop support for executable uzip images
A uzip image has a 128-byte header, historically, this header could be
executed as a shell script to mount the uzip image to a user provided
mountpoint.

The embedded shell commands only work for uzip images that were created
with zlib or zstd compression that contained an ISO-9660 file system.
Given the limited space available in the uzip header, it is not
practical to extend this feature to include other file systems or to
provide sensible error handling and error messages to the user.
For these reasons, abandon the embedded shell script in the uzip image
header.

To maintain backwards compatibility, the shebang and shell must reside
in the 128-byte header.

This change of behavior is documented in mkuzip(8) and an example
has been provided for creating/mounting uzip images.

PR: 276174
2024-10-20 22:45:09 -08:00
..
Makefile
Makefile.depend
mkuz_blk_chain.h
mkuz_blk.c
mkuz_blk.h
mkuz_blockcache.c
mkuz_blockcache.h
mkuz_cfg.h
mkuz_cloop.h
mkuz_conveyor.c
mkuz_conveyor.h
mkuz_format.h
mkuz_fqueue.c
mkuz_fqueue.h
mkuz_insize.c
mkuz_insize.h
mkuz_lzma.c
mkuz_lzma.h
mkuz_time.c
mkuz_time.h
mkuz_zlib.c
mkuz_zlib.h
mkuz_zstd.c
mkuz_zstd.h
mkuzip.8
mkuzip.c
mkuzip.h