[File] [PATCH] Adding built-in decompression for bzip2/lzma/xz

Christos Zoulas christos at zoulas.com
Thu Jul 18 20:34:11 UTC 2019


On Jul 18,  8:59pm, astron.com.bwoj at manchmal.in-ulm.de (Christoph Biedl) wrote:
-- Subject: [File] [PATCH] Adding built-in decompression for bzip2/lzma/xz

| Hello,
| 
| as documented, the seccomp feature will break execution of the file
| program if -z or -Z option is used on content that cannot be
| decompressed internally. Currently, only compressions understood by
| zlib can be handled internally, e.g. gzip.
| 
| To reduce the impact, I've created likewise support for bzip2, lzma,
| and xz. It was mostly copy'n'paste (and some edit) so all existing
| flaws were reproduced :-]
| 
| For bzip2 there already was an unused stub which I recycled.
| 
| For xz/lzma there's a small irritation since the library is called
| lzma, obviously for historical reasons, while certainly the most common
| use case today is xz. So I decided to name the options/constants/names
| "xz", causing brain twist in a few places. Also, liblzma seems to use
| the futex syscall so I had to whitelist that one as well.

Excellent! Thank you :-) 
We just made a lot of progress for: https://bugs.astron.com/view.php?id=68

christos


More information about the File mailing list