是否有A' soft' Chroot(2)的版本?

发布于 2025-01-17 18:09:42 字数 297 浏览 0 评论 0原文

我想使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文