github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/libcontainer/dmz/README.md (about)

     1  # Runc-dmz
     2  
     3  runc-dmz is a small and very simple binary used to execute the container's entrypoint.
     4  
     5  ## Making it small
     6  
     7  To make it small we use the Linux kernel's [nolibc include files][nolibc-upstream], so we don't use the libc.
     8  
     9  A full `cp` of it is here in `nolibc/`, but removing the Makefile that is GPL. DO NOT FORGET to
    10  remove the GPL code if updating the nolibc/ directory.
    11  
    12  The current version in that folder is from Linux 6.6-rc3 tag (556fb7131e03b0283672fb40f6dc2d151752aaa7).
    13  
    14  It also support all the architectures we support in runc.
    15  
    16  If the GOARCH we use for compiling doesn't support nolibc, it fallbacks to using the C stdlib.
    17  
    18  [nolibc-upstream]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/include/nolibc?h=v6.6-rc3