I'm looking for a way to run multiple python/php apps on one server. Each app in it's own /bob_app folder.
I need for users not to be able to run sth like:
>>> import glob
>>> glob.glob("/*")
['/boot', '/cdrom', '/dev', '/lib64', '/run', '/initrd.img', '/sys', '/media', '/var', '/etc', '/srv', '/initrd.img.old', '/root', '/sbin', '/tmp', '/opt', '/vmlinuz', '/usr', '/home', '/lost+found', '/bin', '/proc', '/lib', '/mnt', '/vmlinuz.old']
Or the php etc equivalent. The apps should only see the contents of the folder they are running in and nothing above that.
Edit: The apps are in docker containers and using a chroot environment within docker is not something I'm sure is the right thing to do.