You do not need anything but an executable to run the statically linked world of greeting. Of course, you will need a lot more to compile it.
You can check this pretty easily, I did it with the following trivial C code:
#include <stdio.h>
int main() {
puts("Hello, world\n");
return 0;
}
gcc -. ( "chroot-dir" ), ( "hello" ) . , chroot . chroot chroot-dir ./hello, Hello, world.
, , . , ( PAM), PAM . , /etc. getpw * getgr *, .. nsswitch.conf ( , , , , ). /etc/hosts, /etc/services /etc/protocols, , .
, , - strace. , .