This is an example of the directory layout for the chroot/etc directory of a SELinux UML instance.
ld.so.cache
should be generated with ldconfig -r
.
localtime is not required generally, but adding it makes chrooting into a shell more practical.
Generally, nsswitch.conf can be copied from the host as is.
The pam configuration files are only needed if there are binaries that use pam.
drwxr-xr-x 3 root root .
drwxr-xr-x 12 root root ..
-rw-r--r-- 1 root root group
-rw-r--r-- 1 root root ld.so.cache
-rw-r--r-- 1 root root localtime
-rw-r--r-- 1 root root login.defs
-rw-r--r-- 1 root root nsswitch.conf
drwxr-xr-x 2 root root pam.d
-rw-r--r-- 1 root root passwd
drwxr-xr-x 2 root root security
-rw------- 1 root root shadow