Skip to content
Snippets Groups Projects
Commit e2c9db24 authored by Laurent Vivier's avatar Laurent Vivier Committed by Frieder Schrempf
Browse files

binfmt_misc: pass binfmt_misc flags to the interpreter


commit 2347961b upstream.

It can be useful to the interpreter to know which flags are in use.

For instance, knowing if the preserve-argv[0] is in use would
allow to skip the pathname argument.

This patch uses an unused auxiliary vector, AT_FLAGS, to add a
flag to inform interpreter if the preserve-argv[0] is enabled.

Note by Helge Deller:
The real-world user of this patch is qemu-user, which needs to know
if it has to preserve the argv[0]. See Debian bug #970460.

Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Reviewed-by: default avatarYunQiang Su <ysu@wavecomp.com>
URL: http://bugs.debian.org/970460


Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Cc: Thorsten Glaser <tg@debian.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32212d42
No related branches found
No related tags found
1 merge request!168🤖 Sync Bot: Update v5.10-ktn to Latest Stable Kernel (v5.10.225)
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment