I'm wanting to use chroot(2) so that when /file.txt is accessed, the file at /media/something/file.txt is instead retrieved. I could append the path to /media/something, but that would allow for a file outside of the intended pseudo-root to be accessible like /../../etc/passwd going to /etc/passwd.
I've tried a lot of 'googling around' with no luck.