RFC: test-in-container vs ld.so

DJ Delorie dj@redhat.com
Fri Dec 6 20:10:00 GMT 2019


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.



More information about the Libc-alpha mailing list