TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Cross-platform per process file access tracing

2 点作者 stefanhoelzl超过 5 年前
Hi,<p>I am looking for a platform independent way (at least Linux&#x2F;MacOS&#x2F;Windows) to trace all file operations for one process (and its child processes). For PID X, I want a list of all files which are opened by this process and in what mode (read or write).<p>Two ways I come up so far, but both are not exactly what I was looking for: * chroot or lxc to change root to a FUSE filesystem which traces all operations: Works only on Linux (lxc) or Linux&#x2F;MacOS(chroot) and requires sudo. * ptrace: Only for POSIX compatible OS, requires a lot of platform-specific code for the different system calls.<p>Has anyone some suggestions for my problem? Thanks!

暂无评论

暂无评论