public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/16124] New: ld.so should allow to change argv[0]
@ 2013-11-05 18:06 piotr.roszatycki at gmail dot com
  2013-11-05 18:15 ` Ondřej Bílka
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: piotr.roszatycki at gmail dot com @ 2013-11-05 18:06 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

            Bug ID: 16124
           Summary: ld.so should allow to change argv[0]
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: piotr.roszatycki at gmail dot com
                CC: drepper.fsp at gmail dot com

Created attachment 7267
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7267&action=edit
--argv0 option for ld.so

Any program can be started via dynamic loader explicitly, ie.
/lib64/ld-linux-x86-64.so.2. Unfortunately, there is no possibility to change
argv[0]. It makes this loader not so useful as it might be.

It would be nice if ld.so had an additional option which would replace argv[0].

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Bug libc/16124] New: ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
@ 2013-11-05 18:15 ` Ondřej Bílka
  2013-11-05 18:17 ` [Bug libc/16124] " neleai at seznam dot cz
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Ondřej Bílka @ 2013-11-05 18:15 UTC (permalink / raw)
  To: piotr.roszatycki at gmail dot com; +Cc: glibc-bugs

On Tue, Nov 05, 2013 at 06:04:33PM +0000, piotr.roszatycki at gmail dot com wrote:
> 
> Any program can be started via dynamic loader explicitly, ie.
> /lib64/ld-linux-x86-64.so.2. Unfortunately, there is no possibility to change
> argv[0]. It makes this loader not so useful as it might be.
> 
> It would be nice if ld.so had an additional option which would replace argv[0].
> 
Changing argv[0] is lying about binary name, how this would be used?


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
  2013-11-05 18:15 ` Ondřej Bílka
@ 2013-11-05 18:17 ` neleai at seznam dot cz
  2013-11-05 20:45 ` bugdal at aerifal dot cx
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: neleai at seznam dot cz @ 2013-11-05 18:17 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=16124

--- Comment #1 from Ondrej Bilka <neleai at seznam dot cz> ---
On Tue, Nov 05, 2013 at 06:04:33PM +0000, piotr.roszatycki at gmail dot com
wrote:
> 
> Any program can be started via dynamic loader explicitly, ie.
> /lib64/ld-linux-x86-64.so.2. Unfortunately, there is no possibility to change
> argv[0]. It makes this loader not so useful as it might be.
> 
> It would be nice if ld.so had an additional option which would replace argv[0].
> 
Changing argv[0] is lying about binary name, how this would be used?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
  2013-11-05 18:15 ` Ondřej Bílka
  2013-11-05 18:17 ` [Bug libc/16124] " neleai at seznam dot cz
@ 2013-11-05 20:45 ` bugdal at aerifal dot cx
  2013-12-04 13:42 ` neleai at seznam dot cz
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugdal at aerifal dot cx @ 2013-11-05 20:45 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
Example: ld.so --argv0 ls -- /bin/busybox -l

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug libc/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
                   ` (2 preceding siblings ...)
  2013-11-05 20:45 ` bugdal at aerifal dot cx
@ 2013-12-04 13:42 ` neleai at seznam dot cz
  2014-02-07  2:54 ` [Bug dynamic-link/16124] " jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: neleai at seznam dot cz @ 2013-12-04 13:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Ondrej Bilka <neleai at seznam dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |neleai at seznam dot cz

--- Comment #3 from Ondrej Bilka <neleai at seznam dot cz> ---
As you have a patch for this next step is send it to libc-alpha.

You need to follow
https://sourceware.org/glibc/wiki/Contribution%20checklist
including changelog entries like

2008-12-12  John Doe  <johndoe@some.email.address>

        [BZ #9999]
        * login/utmp_file.c (pututline_file): Replace call to 'dup()'
        with libc internal symbol '__dup()' to avoid access through
        the PLT.
        * manual/install.texi: Minimum version updated.
        * INSTALL: Regenerated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug dynamic-link/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
                   ` (3 preceding siblings ...)
  2013-12-04 13:42 ` neleai at seznam dot cz
@ 2014-02-07  2:54 ` jsm28 at gcc dot gnu.org
  2014-06-13 12:26 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-07  2:54 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |dynamic-link

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug dynamic-link/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
                   ` (4 preceding siblings ...)
  2014-02-07  2:54 ` [Bug dynamic-link/16124] " jsm28 at gcc dot gnu.org
@ 2014-06-13 12:26 ` fweimer at redhat dot com
  2020-09-29 10:35 ` fweimer at redhat dot com
  2020-09-29 10:48 ` kdudka at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 12:26 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug dynamic-link/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
                   ` (5 preceding siblings ...)
  2014-06-13 12:26 ` fweimer at redhat dot com
@ 2020-09-29 10:35 ` fweimer at redhat dot com
  2020-09-29 10:48 ` kdudka at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2020-09-29 10:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |fweimer at redhat dot com
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |2.33

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
Fixed in glibc 2.33 via:

commit c6702789344043fa998923c8f32ed0bdb2edfa9c
Author: Vincent Mihalkovic <vmihalko@redhat.com>
Date:   Tue Sep 29 12:34:39 2020 +0200

    ld.so: add an --argv0 option [BZ #16124]

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug dynamic-link/16124] ld.so should allow to change argv[0]
  2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
                   ` (6 preceding siblings ...)
  2020-09-29 10:35 ` fweimer at redhat dot com
@ 2020-09-29 10:48 ` kdudka at redhat dot com
  7 siblings, 0 replies; 9+ messages in thread
From: kdudka at redhat dot com @ 2020-09-29 10:48 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16124

Kamil Dudka <kdudka at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kdudka at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-29 10:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-05 18:06 [Bug libc/16124] New: ld.so should allow to change argv[0] piotr.roszatycki at gmail dot com
2013-11-05 18:15 ` Ondřej Bílka
2013-11-05 18:17 ` [Bug libc/16124] " neleai at seznam dot cz
2013-11-05 20:45 ` bugdal at aerifal dot cx
2013-12-04 13:42 ` neleai at seznam dot cz
2014-02-07  2:54 ` [Bug dynamic-link/16124] " jsm28 at gcc dot gnu.org
2014-06-13 12:26 ` fweimer at redhat dot com
2020-09-29 10:35 ` fweimer at redhat dot com
2020-09-29 10:48 ` kdudka at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).