News for hackers. Stuff that matters.
Re:Pack: A New Container Format for Compressed Files by jrockway on Friday March 22, 2024 @09:47PM (#39796724)
I agree very much with this. Something that annoys me is how much information tar files leak. Like, you don't need to know the username or groupname of the person that originally owned the files. You don't need to copy around any mode bit other than "executable". You definitely don't need "last modified" timestamps, which exist only to make builds that produce archives non-hermetic.

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".)

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
Re:Pack: A New Container Format for Compressed Files by wruza on Saturday March 23, 2024 @10:47PM (#39804777)
In most common scenarios, curl | bash is no different from apt-add-repository && apt install. Running a completely non-curated executable is very different.