Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我偶然发现了一个使用 seccomp 过滤掉一些系统调用的 C 程序。除了暴力破解之外,是否还有其他方法可以找出实际允许的系统调用。
提前致谢
如果可以编译 C 程序,可以调用seccomp_export_pfc函数。
您可以参考Kafel,编写策略并使用其 dump_policy_bpf 工具反汇编生成的 eBPF 代码。