Back in the day we'd use chroot to achieve something similar
https://linux.die.net/man/1/chroot
Yes, in reality you might use chroot, limited filesystem permissions, and a restricted shell as a belt-and-suspenders approach.
Yes, in reality you might use chroot, limited filesystem permissions, and a restricted shell as a belt-and-suspenders approach.