RFC: test-in-container vs ld.so

Carlos O'Donell codonell@redhat.com
Tue Dec 10 19:33:00 GMT 2019


On 12/6/19 3:09 PM, DJ Delorie wrote:
> 
> Amusingly, test-container.c has for a long time already had this code:
> 
> 
>   if (strcmp (argv[1], support_objdir_elf_ldso) == 0)
>     {
>       ++argv;
>       --argc;
>       while (argv[1][0] == '-')
> 	{
> 	  if (strcmp (argv[1], "--library-path") == 0)
> 	    {
> 	      ++argv;
> 	      --argc;
> 	    }
> 	  ++argv;
> 	  --argc;
> 	}
>     }
> 
> 
> So, we're already not running ld.so in the container anyway :-P
> 
> IIRC we made a point of running the test program as PID 1 in the
> container, which precludes running under other programs.
 
Yay! Does that mean we don't have a bug?

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list