使用 Landlock 和 Seccomp 锁定科学网关
Locking Down Science Gateways with Landlock and Seccomp
AI总结:
本文探索利用 Linux 内核新特性 Landlock 和 Seccomp 限制科学网关进程的权限,通过修改三个成熟科学代码(Einstein Toolkit、Octo-Tiger、FUKA)并锁定它们,最终实现一个完全依赖 Landlock 进行安全防护的 FUKA 科学网关。
摘要:
最新的 Linux 内核有一个用于保护应用程序安全的新特性:Landlock。与之前的 Seccomp 类似,Landlock 使得正在运行的进程能够放弃对资源的访问。对于作为科学网关运行的应用程序,在启动 MPI 时需要网络访问,但出于安全考虑,在读取用户提供的参数文件之前应撤销该访问权限。我们通过修改并锁定三个成熟的科学代码来探索 Landlock 的实用性:Einstein Toolkit(研究相对论天体物理动力学,例如中子星碰撞的代码)、Octo-Tiger(研究非相对论天体物理动力学,例如白矮星的代码)和 FUKA(相对论代码的初始数据求解器)。最后,我们实现了一个完全功能的 FUKA 科学网关,该网关依赖 Landlock(而非用户认证)来确保安全。
英文摘要:
The most recent Linux kernels have a new feature for securing applications: Landlock. Like Seccomp before it, Landlock makes it possible for a running process to give up access to resources. For applications running as Science Gateways, network access is required while starting up MPI, but for the sake of security, it should be taken away prior to the reading of user-supplied parameter files. We explore the usefulness of Landlock by modifying and locking down three mature scientific codes: The Einstein Toolkit (a code that studies the dynamics of relativistic astrophysics, e.g. neutron star collisions), Octo-Tiger (a code for studying the dynamics of non-relativistic astrophysics, e.g. white dwarfs), and FUKA (an initial data solver for relativistic codes). Finally, we implement a fully-functioning FUKA science gateway that relies on Landlock (instead of user authentication) for security.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。