This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] binfmt_misc: pass binfmt_misc P flag to the interpreter
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: YunQiang Su <syq at debian dot org>
- Cc: torvalds at linux-foundation dot org, gregkh at linuxfoundation dot org, akpm at linux-foundation dot org, viro at zeniv dot linux dot org dot uk, James dot Bottomley at hansenpartnership dot com, linux-kernel at vger dot kernel dot org, linux-fsdevel at vger dot kernel dot org, linux-arch at vger dot kernel dot org, linux-api at vger dot kernel dot org, libc-alpha at sourceware dot org, Laurent Vivier <laurent at vivier dot eu>
- Date: Fri, 06 Mar 2020 09:13:50 +0100
- Subject: Re: [PATCH] binfmt_misc: pass binfmt_misc P flag to the interpreter
- References: <20200306080905.173466-1-syq@debian.org>
* YunQiang Su:
> + if (bprm->interp_flags & BINPRM_FLAGS_PRESERVE_ARGV0)
> + flags |= AT_FLAGS_PRESERVE_ARGV0;
> + NEW_AUX_ENT(AT_FLAGS, flags);
Is it necessary to reuse AT_FLAGS? I think it's cleaner to define a
separate AT_ tag dedicated to binfmt_misc.