是否有A' soft' Chroot(2)的版本?
我想使用chroot(2)
,以便在访问/file.txt
时,请在/media/something/something/file.txt 被检索。 i 可以将路径附加到
/媒体/something
,但这将允许在预期的pseudo-root之外使用一个文件,例如/../ ../ etc/passwd
转到/etc/passwd
。
我尝试了很多“谷歌搜索”而没有运气。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论