Pádraig Brady <[email protected]> writes:
> Subject: [PATCH] doc: recommend --enable-single-binary=shebangs mode
>
> * configure.ac: Explicitly say --enable-single-binary[=shebangs]
> is the recommended single binary installation mode.
> * doc/coreutils.texi (Multi-call invocation): List the limitations
> of each single binary mode, and restate that "shebang" scripts
> are the recommended invocation method.
> ---
> configure.ac | 3 ++-
> doc/coreutils.texi | 37 +++++++++++++++++++++++++++++++++++++
> 2 files changed, 39 insertions(+), 1 deletion(-)
Probably not worth listing as a limitation, but this patch reminded me
of an old Gentoo bug report [1]. TLDR: My understanding is that QtCore
needed to know the binary format used by the system and used 'readelf'
on "/bin/ls" to determine that. This doesn't work with
--enable-single-binary=shebangs, of course. My feeling is that checks
like that are probably uncommon, but who knows.
> +@item
> +Having potentially different utility run depending on @code{argv[0]}
> +than might otherwise be implied with the invocation file name,
> +is problematic in the context of file name based security like e.g. AppArmor.
Yep, this has caused Ubuntu some issues with multi-call binaries. See
one example [2], but I remember one or two others that I can't find.
I've considered sending a patch to Debian to add a coreutils
single-binary package, but I don't really look forward to dealing with
AppArmor.
Collin
[1] https://bugs.gentoo.org/716164
[2] https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2137745