系统电话劫持的更安全替代方案? [英] Safer Alternative to System Call Hijacking?

查看:87
本文介绍了系统电话劫持的更安全替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在之前的中问了一个更一般的问题发布,但我正在重新发布,以使问题更具体.

I asked a more general question in my previous post, but I'm re-posting to make the question more specific.

有人知道重定向硬盘驱动器I/O的另一种方法吗?我需要能够在不中断系统调用的情况下将磁盘上的读/写操作定向到另一个路径.

Does anybody know another way to redirect hard-drive I/O? I need to be able to direct a read/write operation on disk to another path without disrupting the system calls.

还有另一种方式.

我认为一种方法是在写入后将目标文件复制/移动到另一路径.但是,我仍然需要将读取访问重定向到该文件.有没有办法将文件挂载到另一个文件上,以便硬盘驱动器的物理磁头访问已移动/已复制的文件?

I think one way to do it is to copy/move the targeted file to another path AFTER the write. However, I still need to redirect read access to that file. Is there any way to perhaps mount a file over another file, so the physical head of the hard-drive accesses the moved/copied file instead?

谢谢您的反馈.

推荐答案

最简单的方法可能是实现覆盖另一个文件系统的文件系统.

The simplest way to do what you want is probably to implement a filesystem that overlays another filesystem.

您的文件系统将是其中所有文件的所有readwrite调用的第一个调用端口,并且它可以根据需要重定向它们.这将以与覆盖/联合文件系统类似的方式工作(尽管它应该更简单,因为您不会无需尝试处理多个基础文件系统.

Your filesystem will be the first port of call for all read and write calls for files within it, and it can redirect them as it sees fit. This would work in a similar way to overlay / union filesystems (although it should be simpler, because you don't need to try to deal with more than one underlying filesystem).

这篇关于系统电话劫持的更安全替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆