xz/src
Lasse Collin de4337fd89 xz: Landlock: Fix error message if input file is a directory.
If xz is given a directory, it should look like this:

    $ xz /usr/bin
    xz: /usr/bin: Is a directory, skipping

The Landlock rules didn't allow opening directories for reading:

    $ xz /usr/bin
    xz: /usr/bin: Permission denied

The simplest fix was to allow opening directories for reading.
While it's a bit silly to allow it solely for the error message,
it shouldn't make the sandbox significantly weaker.

The single-file use case (like when called from GNU tar) is
still as strict as possible: all Landlock restrictions are
enabled before (de)compression starts.
2024-02-22 15:18:25 +02:00
..
common Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
liblzma liblzma: Disable branchless C version in range decoder. 2024-02-22 14:41:29 +02:00
lzmainfo Build: Install translated lzmainfo man pages. 2024-02-17 16:23:14 +02:00
scripts Scripts: Use @PACKAGE_VERSION@ instead of @VERSION@. 2024-02-19 12:21:37 +02:00
xz xz: Landlock: Fix error message if input file is a directory. 2024-02-22 15:18:25 +02:00
xzdec Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
Makefile.am Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00