Re:Pack: A New Container Format for Compressed Files
by theamk on Friday March 22, 2024 @10:41PM
(#39796974)
I know it may not seem this way, but a lot of people don't ever run "curl | bash", or if they do, they do so in throwaway VM (or container if source is mostly trusted)
Re:Pack: A New Container Format for Compressed Files
by wakawaka28 on Saturday March 23, 2024 @12:10AM
(#39797377)
It's really a bad idea most of the time to have an archive that doubles as an executable. It's not possible to cover every possible platform, and in the distant future those self-extracting archives may be impossible to extract without the required host system.
Re:Pack: A New Container Format for Compressed Files
by Symbiote on Saturday March 23, 2024 @06:20AM
(#39798793)
tar --create --owner=0 --group=0 --mtime='2000-01-01 00:00:00' \
--mode='go-rwxst' --file test.tar /bin/dash /etc/hosts
tar --list --verbose --file test.tar
-rwx------ root/root 125688 2000-01-01 00:00 bin/dash
-rw------- root/root 1408 2000-01-01 00:00 etc/hosts
Frankly, I don't even want any of these things on my mounted filesystem either.
> The problem is that people would have to download an unpacker.
Your archive format just needs to be an executable that runs on every platform. https://github.com/jart/cosmopolitan is something that could help with that. ("Who would execute an archive? It could do anything," I hear you scream. Well, tell that to anyone who has run "curl | bash".)