You are not logged in.
I have read about systemd-nspawn which is a "better" chroot. But I wonder what is/.are the system calls behind this. The chroot command is a simple wrapper around the glibc chroot call. What about systemd-nspawn, what this command do at the C level? Are there "new" system call it relies upon?
Offline
Since nobody seems to have a better answer I can say that it probably uses some combination of namespaces, cgroups and "container" features like that. I know little about this stuff but hopefully these keywords will be useful.
You can also try strace, but it may not be particularly enlightening if the tool mainly writes some magic commands to magic files in /sys.
Last edited by mich41 (2016-12-06 18:16:49)
Offline
what is/.are the system calls behind this
See namespaces(7), all the trendy new container systems use this kernel feature ![]()
Jin, Jîyan, Azadî
Offline
Which is afaiu however disable in the arch kernels because og various security concerns
https://bugs.archlinux.org/task/36969
Offline
Which is afaiu however disable in the arch kernels
I think that refers to user namespaces.
empty@Arch ~ % zgrep NAMESPACE /proc/config.gz
CONFIG_NAMESPACES=yJin, Jîyan, Azadî
Offline